Class QueryPropReference

java.lang.Object
com.iizigo.event.QueryPropReference

public class QueryPropReference extends Object
Class to define a reference to a property for the Query References message.
Author:
Christopher Mindus
  • Constructor Details

    • QueryPropReference

      public QueryPropReference(GProp<?> prop, GProp<?> source)
      Constructor for simple property reference.
      Parameters:
      prop - The property being referenced by the source property.
      source - The source property.
      Throws:
      NullPointerException - If prop is null.
    • QueryPropReference

      public QueryPropReference(GProp<?> prop, int index, GProp<?> source)
      Constructor for an index-based multi-property reference.
      Parameters:
      prop - The property being referenced by the source property.
      index - The index.
      source - The source property.
      Throws:
      NullPointerException - If prop or source is null.
  • Method Details

    • getProp

      public GProp<?> getProp()
      Gets the property.
    • getSource

      public GProp<?> getSource()
      Gets the property.
    • getIndex

      public int getIndex()
      Gets the index, -1 for none.
    • equals

      public boolean equals(Object o)
      Checks for two identical items.
      Overrides:
      equals in class Object
      Returns:
      The equality flag.
    • hashCode

      public int hashCode()
      Gets the hash code.
      Overrides:
      hashCode in class Object
      Returns:
      The hash code.