Class ReductionSignature<V>

java.lang.Object
org.egothor.stemmer.trie.ReductionSignature<V>
Type Parameters:
V - value type

public final class ReductionSignature<V> extends Object
Immutable reduction signature of a full subtree.
  • Method Details

    • create

      public static <V> ReductionSignature<V> create(LocalValueSummary<V> localSummary, Map<Character,ReducedNode<V>> children, ReductionSettings settings)
      Creates a subtree signature according to the selected reduction mode.
      Type Parameters:
      V - value type
      Parameters:
      localSummary - local value summary
      children - reduced children
      settings - reduction settings
      Returns:
      subtree signature
    • hashCode

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

      public boolean equals(Object other)
      Overrides:
      equals in class Object