Class SimplePredicateMap<T,​V>

  • All Implemented Interfaces:
    PredicateMap<T,​V>

    public class SimplePredicateMap<T,​V>
    extends java.lang.Object
    implements PredicateMap<T,​V>
    A simple (and rather inefficient) implementation of a PredicateMap.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <P extends com.google.common.base.Predicate<T>>
      void
      add​(P predicate, java.util.List<V> value)  
      <P extends com.google.common.base.Predicate<T>>
      void
      add​(P predicate, V value)  
      java.util.Collection<V> get​(T object)  
      protected <P extends com.google.common.base.Predicate<T>>
      java.util.List<V>
      getList​(P predicate, boolean create)  
      void remove​(java.util.List<V> values)  
      void remove​(V value)  
      • Methods inherited from class java.lang.Object

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

      • SimplePredicateMap

        public SimplePredicateMap()
    • Method Detail

      • getList

        protected <P extends com.google.common.base.Predicate<T>> java.util.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,
                                                                        java.util.List<V> value)
        Specified by:
        add in interface PredicateMap<T,​V>
      • remove

        public void remove​(java.util.List<V> values)
        Specified by:
        remove in interface PredicateMap<T,​V>
      • get

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