Documentation of 'edu.jas.util.KsubSet' Java class
KsubSet
edu.jas.util

Class KsubSet<E>

  • All Implemented Interfaces:
    java.lang.Iterable<java.util.List<E>>


    public class KsubSet<E>
    extends java.lang.Object
    implements java.lang.Iterable<java.util.List<E>>
    K-Subset with iterator.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      int k 
      java.util.List<E> set
      data structure.
    • Constructor Summary

      Constructors 
      Constructor and Description
      KsubSet(java.util.List<E> set, int k)
      KsubSet constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.Iterator<java.util.List<E>> iterator()
      Get an iterator over subsets.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Field Detail

      • set

        public final java.util.List<E> set
        data structure.
      • k

        public final int k
    • Constructor Detail

      • KsubSet

        public KsubSet(java.util.List<E> set,
                       int k)
        KsubSet constructor.
        Parameters:
        set - generating set.
        k - size of subsets.
    • Method Detail

      • iterator

        public java.util.Iterator<java.util.List<E>> iterator()
        Get an iterator over subsets.
        Specified by:
        iterator in interface java.lang.Iterable<java.util.List<E>>
        Returns:
        an iterator.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.