public enum OrientationComparator extends java.lang.Enum<OrientationComparator> implements java.util.Comparator<Neuron>
Enum Constant and Description |
---|
X_ORDER |
X_REVERSE |
Y_ORDER |
Y_REVERSE |
Modifier and Type | Method and Description |
---|---|
abstract int |
compare(Neuron neuron1,
Neuron neuron2) |
static double |
findMaxX(java.util.List<Neuron> neurons) |
static double |
findMaxY(java.util.List<Neuron> neurons) |
static double |
findMidpointX(java.util.List<Neuron> neurons) |
static double |
findMidpointY(java.util.List<Neuron> neurons) |
static double |
findMinX(java.util.List<Neuron> neurons) |
static double |
findMinY(java.util.List<Neuron> neurons) |
static OrientationComparator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OrientationComparator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OrientationComparator X_ORDER
public static final OrientationComparator Y_ORDER
public static final OrientationComparator X_REVERSE
public static final OrientationComparator Y_REVERSE
public static OrientationComparator[] values()
for (OrientationComparator c : OrientationComparator.values()) System.out.println(c);
public static OrientationComparator valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract int compare(Neuron neuron1, Neuron neuron2)
compare
in interface java.util.Comparator<Neuron>
neuron1
- neuron2
- public static double findMinX(java.util.List<Neuron> neurons)
neurons
- public static double findMaxX(java.util.List<Neuron> neurons)
public static double findMinY(java.util.List<Neuron> neurons)
public static double findMaxY(java.util.List<Neuron> neurons)
public static double findMidpointX(java.util.List<Neuron> neurons)
public static double findMidpointY(java.util.List<Neuron> neurons)