public enum ChangeType extends Enum<ChangeType>
changeType ENUMERATED
{
add (1),
delete (2),
modify (4),
modDN (8)
}
| Enum Constant and Description |
|---|
ADD
An ADD
|
DELETE
A Delete
|
MODDN
A MODDN
|
MODIFY
A Modify
|
| 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(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(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 int getValue()
public boolean presentIn(int changeTypes)
changeTypes - The supplied changeTypes.public static ChangeType getChangeType(int value)
value - the value to get the enumeration forIllegalArgumentException - if the value is undefinedCopyright © 2003–2022 The Apache Software Foundation. All rights reserved.