public enum ChangeType extends java.lang.Enum<ChangeType>
changeType ENUMERATED
{
add (1),
delete (2),
modify (4),
modDN (8)
}
| Modifier and Type | Field and Description |
|---|---|
private int |
value |
| Modifier and Type | Method and Description |
|---|---|
static ChangeType |
getChangeType(int value)
Gets the changeType enumeration type for an integer value.
|
int |
getValue() |
boolean |
presentIn(int changeTypes)
Checks via bitwise AND to see if this ChangeType value is within the
supplied changeTypes.
|
static ChangeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ChangeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChangeType ADD
public static final ChangeType DELETE
public static final ChangeType MODIFY
public static final ChangeType MODDN
public static ChangeType[] values()
for (ChangeType c : ChangeType.values()) System.out.println(c);
public static ChangeType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getValue()
public boolean presentIn(int changeTypes)
changeTypes - The supplied changeTypes.public static ChangeType getChangeType(int value)
value - the value to get the enumeration forjava.lang.IllegalArgumentException - if the value is undefined