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.Comparator
Defines 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 int
compare(java.lang.Object o1, java.lang.Object o2)
Implemented as specified by theComparator
I/F.boolean
equals(java.lang.Object obj)
Overridden to control if the passed object equals the current one.int
getTimePoint()
Returns the timepoint.int
getZSection()
Returns the z-section.int
hashCode()
Calculate the hashCode for the data, The hashcode is generated by bitshifting z by ZTBITSPLIT bits and adding t.java.lang.String
toString()
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 theComparator
I/F.- Specified by:
compare
in 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:
equals
in interfacejava.util.Comparator
- Overrides:
equals
in 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:
hashCode
in classjava.lang.Object
- Returns:
- See above.
-
toString
public java.lang.String toString()
Returns the string of the coordinates.- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
-