Class PropertyChange

java.lang.Object
org.gatein.pc.api.state.PropertyChange

public class PropertyChange extends Object
A property change. The class is immutable
Version:
$Revision: 5776 $
Author:
Julien Viet
  • Field Details

    • PREF_UPDATE

      public static final int PREF_UPDATE
      The change is an update of the property value.
      See Also:
    • PREF_RESET

      public static final int PREF_RESET
      The change is a reset of the property value.
      See Also:
  • Method Details

    • newUpdate

      public static PropertyChange newUpdate(String key, String value)
      Create a new property update, the list of values will be clone for safety.
      Parameters:
      key - the property key
      value - the property value
      Returns:
      an instance representing a property update
    • newUpdate

      public static PropertyChange newUpdate(String key, String[] value)
      Create a new property update, the list of values will be clone for safety.
      Parameters:
      key - the property key
      value - the property value
      Returns:
      an instance representing a property update
    • newUpdate

      public static PropertyChange newUpdate(String key, List<String> value)
      Create a new property update, the list of values will be clone for safety.
      Parameters:
      key - the property key
      value - the property value
      Returns:
      an instance representing a property update
    • newReset

      public static PropertyChange newReset(String key)
      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

      public String getKey()
      Return the property key
      Returns:
      the property key
    • getValue

      public List<String> getValue()
      Return the new value or null in case of a property reset.
      Returns:
      the property value