Пример #1
0
 /**
  * Constructor: create an empty set corresponding to a given mapping
  *
  * @throws IllegalArgumentException if map is null
  */
 public BitSet(OrdinalSetMapping<T> map) {
   if (map == null) {
     throw new IllegalArgumentException("map is null");
   }
   int length = map.getMaximumIndex();
   vector = new BitVector(length);
   this.map = map;
 }
Пример #2
0
 public int getMaximumIndex() {
   return offset + delegate.getMaximumIndex();
 }