Package jadex.common

Class ChangeEvent<T>

java.lang.Object
jadex.common.ChangeEvent<T>

public class ChangeEvent<T> extends Object
The basic change event.
  • Field Details

    • source

      protected Object source
      The source.
    • type

      protected String type
      The type.
    • value

      protected T value
      The value.
  • Constructor Details

    • ChangeEvent

      public ChangeEvent()
      Create a new event.
    • ChangeEvent

      public ChangeEvent(Object source)
      Create a new event.
    • ChangeEvent

      public ChangeEvent(Object source, String type)
      Create a new event.
    • ChangeEvent

      public ChangeEvent(Object source, String type, T value)
      Create a new event.
  • Method Details

    • getSource

      public Object getSource()
      Get the source.
      Returns:
      The source.
    • setSource

      public void setSource(Object source)
      Set the source.
      Parameters:
      source - The source to set.
    • getType

      public String getType()
      Get the type.
      Returns:
      The type.
    • setType

      public void setType(String type)
      Set the type.
      Parameters:
      type - The type to set.
    • getValue

      public T getValue()
      Get the value.
      Returns:
      The value.
    • setValue

      public void setValue(T value)
      Set the value.
      Parameters:
      value - The value to set.
    • toString

      public String toString()
      Get the string respresentation.
      Overrides:
      toString in class Object
      Returns:
      The string representation.