org.javaseis.array
Enum TransposeType

java.lang.Object
  extended by java.lang.Enum<TransposeType>
      extended by org.javaseis.array.TransposeType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TransposeType>

public enum TransposeType
extends java.lang.Enum<TransposeType>

Enum for transpose types supported by JavaSeis classes

Author:
Chuck Mosher for JavaSeis.org

Enum Constant Summary
T12
           
T123
           
T1234
           
T1243
           
T132
           
T21
           
T213
           
T231
           
T312
           
T321
           
 
Method Summary
 int[] permutation()
           
 java.lang.String toString()
           
 java.lang.String type()
           
static TransposeType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TransposeType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

T12

public static final TransposeType T12

T123

public static final TransposeType T123

T1234

public static final TransposeType T1234

T1243

public static final TransposeType T1243

T132

public static final TransposeType T132

T21

public static final TransposeType T21

T213

public static final TransposeType T213

T231

public static final TransposeType T231

T312

public static final TransposeType T312

T321

public static final TransposeType T321
Method Detail

permutation

public int[] permutation()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<TransposeType>

type

public java.lang.String type()

valueOf

public static TransposeType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

values

public static TransposeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TransposeType c : TransposeType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared