Package org.biojava.nbio.structure
Enum ElementType
- All Implemented Interfaces:
Serializable
,Comparable<ElementType>
,java.lang.constant.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 ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionboolean
isMetal()
Returnstrue
if ElementType is a metal.boolean
Returnstrue
if ElementType is a metalloid.boolean
Returnstrue
if ElementType is a non-metal.static ElementType
Returns the enum constant of this type with the specified name.static ElementType[]
values()
Returns an array containing the constants of this enum type, 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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
isMetal
Returnstrue
if ElementType is a metal.- Returns:
true
if ElementType is a metal.
-
isMetalloid
Returnstrue
if ElementType is a metalloid.- Returns:
true
if ElementType is a metalloid.
-
isNonMetal
Returnstrue
if ElementType is a non-metal.- Returns:
true
if ElementType is a non-metal.
-