- java.lang.Object
-
- org.scijava.ops.tutorial.OpPriorities
-
public class OpPriorities extends Object
A tutorial showing how you can use Op priorities to implement Ops that take precedence over others in certain scenarios- Author:
- Gabriel Selzer
-
-
Constructor Summary
Constructors Constructor Description OpPriorities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(String... args)Many algorithms are able to achieve performance improvements on a particular task by making some assumptions.
-
-
-
Method Detail
-
main
public static void main(String... args)
Many algorithms are able to achieve performance improvements on a particular task by making some assumptions. For example, we might write a baseline "maximum" Op that works on java.lang.Iterable, which covers a lot of types, but we could do a lot better a TreeSet by using the SortedSet.last() method. Thus, we can write two different Ops, and get different outputs depending on whether the input is a SortedSet or something else.
-
-