Package omero.gateway.model
Class ROICoordinate
- java.lang.Object
-
- omero.gateway.model.ROICoordinate
-
- All Implemented Interfaces:
java.util.Comparator
public class ROICoordinate extends java.lang.Object implements java.util.ComparatorDefines a plane.- Since:
- 3.0-Beta4
-
-
Constructor Summary
Constructors Constructor Description ROICoordinate()Creates a default instance.ROICoordinate(int z, int t)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(java.lang.Object o1, java.lang.Object o2)Implemented as specified by theComparatorI/F.booleanequals(java.lang.Object obj)Overridden to control if the passed object equals the current one.intgetTimePoint()Returns the timepoint.intgetZSection()Returns the z-section.inthashCode()Calculate the hashCode for the data, The hashcode is generated by bitshifting z by ZTBITSPLIT bits and adding t.java.lang.StringtoString()Returns the string of the coordinates.
-
-
-
Method Detail
-
getTimePoint
public int getTimePoint()
Returns the timepoint. (-1 == all timepoints)- Returns:
- See above.
-
getZSection
public int getZSection()
Returns the z-section. (-1 == all z-sections)- Returns:
- See above.
-
compare
public int compare(java.lang.Object o1, java.lang.Object o2)Implemented as specified by theComparatorI/F.- Specified by:
comparein interfacejava.util.Comparator- See Also:
Comparator.compare(Object, Object)
-
equals
public boolean equals(java.lang.Object obj)
Overridden to control if the passed object equals the current one.- Specified by:
equalsin interfacejava.util.Comparator- Overrides:
equalsin classjava.lang.Object- See Also:
Object.equals(Object)
-
hashCode
public int hashCode()
Calculate the hashCode for the data, The hashcode is generated by bitshifting z by ZTBITSPLIT bits and adding t.- Overrides:
hashCodein classjava.lang.Object- Returns:
- See above.
-
toString
public java.lang.String toString()
Returns the string of the coordinates.- Overrides:
toStringin classjava.lang.Object- See Also:
Object.toString()
-
-