Class Group<Key,​Element>

  • All Implemented Interfaces:
    java.lang.Iterable<Element>

    public class Group<Key,​Element>
    extends java.lang.Object
    implements java.lang.Iterable<Element>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.util.ArrayList<Element> items  
      Key key  
    • Constructor Summary

      Constructors 
      Constructor Description
      Group​(Key key)  
      Group​(Key key, java.util.ArrayList<Element> items)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(Element e)  
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.util.Iterator<Element> iterator()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Field Detail

      • key

        public Key key
      • items

        public java.util.ArrayList<Element> items
    • Constructor Detail

      • Group

        public Group​(Key key)
      • Group

        public Group​(Key key,
                     java.util.ArrayList<Element> items)
    • Method Detail

      • add

        public void add​(Element e)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.util.Iterator<Element> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<Key>
      • toString

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