Class SimplePredicateMap<T,V>

java.lang.Object
com.inductiveautomation.ignition.common.util.SimplePredicateMap<T,V>
All Implemented Interfaces:
PredicateMap<T,V>

public class SimplePredicateMap<T,V> extends Object implements PredicateMap<T,V>
A simple (and rather inefficient) implementation of a PredicateMap.
  • Constructor Details

    • SimplePredicateMap

      public SimplePredicateMap()
  • Method Details

    • getList

      protected <P extends com.google.common.base.Predicate<T>> List<V> getList(P predicate, boolean create)
    • add

      public <P extends com.google.common.base.Predicate<T>> void add(P predicate, V value)
      Specified by:
      add in interface PredicateMap<T,V>
    • add

      public <P extends com.google.common.base.Predicate<T>> void add(P predicate, List<V> value)
      Specified by:
      add in interface PredicateMap<T,V>
    • remove

      public void remove(List<V> values)
      Specified by:
      remove in interface PredicateMap<T,V>
    • remove

      public void remove(V value)
      Specified by:
      remove in interface PredicateMap<T,V>
    • get

      public Collection<V> get(T object)
      Specified by:
      get in interface PredicateMap<T,V>