Package org.biojava.nbio.structure.xtal
Enum BravaisLattice
- java.lang.Object
-
- java.lang.Enum<BravaisLattice>
-
- org.biojava.nbio.structure.xtal.BravaisLattice
-
- All Implemented Interfaces:
Serializable
,Comparable<BravaisLattice>
public enum BravaisLattice extends Enum<BravaisLattice>
An enum to represent the 7 Bravais lattices- Author:
- duarte_j
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CUBIC
HEXAGONAL
MONOCLINIC
ORTHORHOMBIC
TETRAGONAL
TRICLINIC
TRIGONAL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BravaisLattice
getByName(String blName)
CrystalCell
getExampleUnitCell()
int
getId()
String
getName()
static BravaisLattice
valueOf(String name)
Returns the enum constant of this type with the specified name.static BravaisLattice[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TRICLINIC
public static final BravaisLattice TRICLINIC
-
MONOCLINIC
public static final BravaisLattice MONOCLINIC
-
ORTHORHOMBIC
public static final BravaisLattice ORTHORHOMBIC
-
TETRAGONAL
public static final BravaisLattice TETRAGONAL
-
TRIGONAL
public static final BravaisLattice TRIGONAL
-
HEXAGONAL
public static final BravaisLattice HEXAGONAL
-
CUBIC
public static final BravaisLattice CUBIC
-
-
Method Detail
-
values
public static BravaisLattice[] 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 (BravaisLattice c : BravaisLattice.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BravaisLattice valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getId
public int getId()
-
getExampleUnitCell
public CrystalCell getExampleUnitCell()
-
getByName
public static BravaisLattice getByName(String blName)
-
-