|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.array.Order
public class Order
Pixel ordering identifier. Objects in this class are used to identify the ordering of pixels when they are presented as a vectorised array.
This class exemplifies the typesafe enum pattern -- the only possible instances are supplied as static final fields of the class, and these instances are immutable.
Field Summary | |
---|---|
static Order |
COLUMN_MAJOR
Object representing column-major (first-index-fastest) ordering. |
static Order |
ROW_MAJOR
Object representing row-major (last-index-fastest) ordering. |
Method Summary | |
---|---|
static List |
allOrders()
Returns a list of all the known ordering schemes. |
boolean |
isFitsLike()
Convenience method which returns true for ordering which is FITS-like and Fortran-like (that is for COLUMN_MAJOR), otherwise false. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Order COLUMN_MAJOR
public static final Order ROW_MAJOR
Method Detail |
---|
public boolean isFitsLike()
public String toString()
toString
in class Object
public static List allOrders()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |