Class JDBCKeySet<K>

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<K>, java.util.Collection<K>, java.util.Set<K>

    public class JDBCKeySet<K>
    extends AbstractSet<K>
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      JDBCKeySet​(JDBCMapMatrix<K,​?> map, java.sql.ResultSet rs, java.lang.Class<?> keyClass)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean add​(K value)  
      void clear()  
      boolean contains​(java.lang.Object o)  
      java.util.Iterator<K> iterator()  
      boolean remove​(java.lang.Object o)  
      int size()  
      • Methods inherited from class java.util.AbstractSet

        equals, hashCode
      • Methods inherited from class java.util.AbstractCollection

        addAll, containsAll, isEmpty, retainAll, toArray, toArray, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.Set

        addAll, containsAll, isEmpty, retainAll, spliterator, toArray, toArray
    • Field Detail

      • rs

        private final java.sql.ResultSet rs
      • keyClass

        private final java.lang.Class<?> keyClass
    • Constructor Detail

      • JDBCKeySet

        public JDBCKeySet​(JDBCMapMatrix<K,​?> map,
                          java.sql.ResultSet rs,
                          java.lang.Class<?> keyClass)
    • Method Detail

      • add

        public boolean add​(K value)
        Specified by:
        add in interface java.util.Collection<K>
        Specified by:
        add in interface java.util.Set<K>
        Specified by:
        add in class AbstractSet<K>
      • remove

        public boolean remove​(java.lang.Object o)
        Specified by:
        remove in interface java.util.Collection<K>
        Specified by:
        remove in interface java.util.Set<K>
        Specified by:
        remove in class AbstractSet<K>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<K>
        Specified by:
        clear in interface java.util.Set<K>
        Specified by:
        clear in class AbstractSet<K>
      • contains

        public boolean contains​(java.lang.Object o)
        Specified by:
        contains in interface java.util.Collection<K>
        Specified by:
        contains in interface java.util.Set<K>
        Specified by:
        contains in class AbstractSet<K>
      • iterator

        public java.util.Iterator<K> iterator()
        Specified by:
        iterator in interface java.util.Collection<K>
        Specified by:
        iterator in interface java.lang.Iterable<K>
        Specified by:
        iterator in interface java.util.Set<K>
        Specified by:
        iterator in class java.util.AbstractCollection<K>
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<K>
        Specified by:
        size in interface java.util.Set<K>
        Specified by:
        size in class java.util.AbstractCollection<K>