Package org.biojava.nbio.structure
Enum Class ElementType
- All Implemented Interfaces:
Serializable,Comparable<ElementType>,Constable
ElementType is an enumeration of the types of elements found in the periodic table.
Each element type is further classified into Metal, Metalloid, and Non-Metal.
Element types based on definition at http://www.ptable.com/
- Since:
- 3.0
- Version:
- %I% %G%
- Author:
- Peter Rose
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionbooleanisMetal()Returnstrueif ElementType is a metal.booleanReturnstrueif ElementType is a metalloid.booleanReturnstrueif ElementType is a non-metal.static ElementTypeReturns the enum constant of this class with the specified name.static ElementType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
METALLOID
-
OTHER_NONMETAL
-
HALOGEN
-
NOBLE_GAS
-
ALKALI_METAL
-
ALKALINE_EARTH_METAL
-
LANTHANOID
-
ACTINOID
-
TRANSITION_METAL
-
POST_TRANSITION_METAL
-
UNKNOWN
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
isMetal
public boolean isMetal()Returnstrueif ElementType is a metal.- Returns:
trueif ElementType is a metal.
-
isMetalloid
public boolean isMetalloid()Returnstrueif ElementType is a metalloid.- Returns:
trueif ElementType is a metalloid.
-
isNonMetal
public boolean isNonMetal()Returnstrueif ElementType is a non-metal.- Returns:
trueif ElementType is a non-metal.
-