Class ResultStructure<R>

    • Method Detail

      • createWith

        public static <R> ResultStructure<R> createWith​(R resultValue)
        Creates a new ResultSet with the given resultValue as its only result value.
      • createWith

        public static <R> ResultStructure<R> createWith​(java.util.Set<R> resultValues)
        Creates a new ResultSet with the given set of result values.
      • get

        public SearchStructure<R> get​(java.lang.Object key)
        Description copied from class: SearchStructure
        Returns the nested SearchStructure for the given key. This method never returns null. If no value exists for a given key an EmptySearchStructure is returned as a fall-back.
        Specified by:
        get in class SearchStructure<R>
        Parameters:
        key - The key for the requested nested SearchStructure
        Returns:
        The nested SearchStructure or an EmptySearchStructure if the key does not exist.
      • merge

        public void merge​(ResultStructure<R> otherStructure)
        Description copied from interface: MergeAndCopyStructure
        Merging adds the contents of the otherMergable to this object. This object then contains the combined content. The other object remains unchanged.Merging a SearchStructure deletes no content, instead equal values are being merged recursively.
        Specified by:
        merge in interface MergeAndCopyStructure<R>
        Parameters:
        otherStructure - The object that should be merged into this object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object