Class CollectionStore

  • All Implemented Interfaces:
    io.anyline.nfc.bouncycastle.util.Store , java.lang.Iterable

    
    public class CollectionStore<T>
     implements Store<T>, Iterable<T>
                        

    A simple collection backed store.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Collection<T> getMatches(Selector<T> selector) Return the matches in the collection for the passed in selector.
      Iterator<T> iterator()
      • Methods inherited from class java.lang.Iterable

        forEach, spliterator
      • Methods inherited from class java.lang.Object

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

      • CollectionStore

        CollectionStore(Collection<T> collection)
        Basic constructor.
        Parameters:
        collection - - initial contents for the store, this is copied.
    • Method Detail

      • getMatches

         Collection<T> getMatches(Selector<T> selector)

        Return the matches in the collection for the passed in selector.

        Parameters:
        selector - the selector to match against.
        Returns:

        a possibly empty collection of matching objects.