Class QueryPropReference


  • public class QueryPropReference
    extends java.lang.Object
    Class to define a reference to a property for the Query References message.
    Author:
    Christopher Mindus
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      booleanequals​(java.lang.Object o)
      Checks for two identical items.
      intgetIndex()
      Gets the index, -1 for none.
      GProp<?>getProp()
      Gets the property.
      GProp<?>getSource()
      Gets the property.
      inthashCode()
      Gets the hash code.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • 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:
        java.lang.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:
        java.lang.NullPointerException - If prop or source is null.
    • Method Detail

      • 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​(java.lang.Object o)
        Checks for two identical items.
        Overrides:
        equals in class java.lang.Object
        Returns:
        The equality flag.
      • hashCode

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