Package org.gatein.pc.api.state
Class PropertyChange
java.lang.Object
org.gatein.pc.api.state.PropertyChange
A property change. The class is immutable
- Version:
- $Revision: 5776 $
- Author:
- Julien Viet
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe change is a reset of the property value.static final intThe change is an update of the property value. -
Method Summary
Modifier and TypeMethodDescriptiongetKey()Return the property keyintgetType()Return the property change type.getValue()Return the new value or null in case of a property reset.static PropertyChangeCreate a new property reset.static PropertyChangeCreate a new property update, the list of values will be clone for safety.static PropertyChangeCreate a new property update, the list of values will be clone for safety.static PropertyChangeCreate a new property update, the list of values will be clone for safety.
-
Field Details
-
PREF_UPDATE
public static final int PREF_UPDATEThe change is an update of the property value.- See Also:
-
PREF_RESET
public static final int PREF_RESETThe change is a reset of the property value.- See Also:
-
-
Method Details
-
newUpdate
Create a new property update, the list of values will be clone for safety.- Parameters:
key- the property keyvalue- the property value- Returns:
- an instance representing a property update
-
newUpdate
Create a new property update, the list of values will be clone for safety.- Parameters:
key- the property keyvalue- the property value- Returns:
- an instance representing a property update
-
newUpdate
Create a new property update, the list of values will be clone for safety.- Parameters:
key- the property keyvalue- the property value- Returns:
- an instance representing a property update
-
newReset
Create a new property reset.- Parameters:
key- the property key- Returns:
- an instance representing a property reset
-
getType
public int getType()Return the property change type.- Returns:
- the property change type
-
getKey
Return the property key- Returns:
- the property key
-
getValue
Return the new value or null in case of a property reset.- Returns:
- the property value
-