public enum BarrelEndcapFlag extends Enum<BarrelEndcapFlag>
Enum Constant and Description |
---|
BARREL |
ENDCAP |
ENDCAP_NORTH |
ENDCAP_SOUTH |
UNKNOWN |
Modifier and Type | Field and Description |
---|---|
private int |
flag |
Modifier and Type | Method and Description |
---|---|
static BarrelEndcapFlag |
createBarrelEndcapFlag(int flag) |
int |
getFlag() |
boolean |
isBarrel() |
boolean |
isEndcap() |
boolean |
isEndcapNorth() |
boolean |
isEndcapSouth() |
static BarrelEndcapFlag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BarrelEndcapFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BarrelEndcapFlag UNKNOWN
public static final BarrelEndcapFlag BARREL
public static final BarrelEndcapFlag ENDCAP_NORTH
public static final BarrelEndcapFlag ENDCAP_SOUTH
public static final BarrelEndcapFlag ENDCAP
public static BarrelEndcapFlag[] values()
for (BarrelEndcapFlag c : BarrelEndcapFlag.values()) System.out.println(c);
public static BarrelEndcapFlag valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic boolean isBarrel()
public boolean isEndcap()
public boolean isEndcapNorth()
public boolean isEndcapSouth()
public int getFlag()
public static BarrelEndcapFlag createBarrelEndcapFlag(int flag)
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.