@Test public void testToIntArray() throws Exception { IntSet sis = new SingletonIntSet(3); int[] array = sis.toIntArray(); assertArrayEquals(new int[]{3}, array); }
@Override public int[] toIntArray() { int[] array = new int[1]; array[0] = value; return array; }
SingletonIntSet extends AbstractImmutableIntSet { @Override public int[] toIntArray() { int[] array = new int[1]; array[0] = value; return array; } }
SingletonIntSet extends AbstractImmutableIntSet { @Override public int[] toIntArray() { int[] array = new int[1]; array[0] = value; return array; } SingletonIntSet(int value); }
SingletonIntSet extends AbstractImmutableIntSet { @Override public int[] toIntArray() { int[] array = new int[1]; array[0] = value; return array; } SingletonIntSet(int value); @Override boolean contains(int i); @Override boolean containsAll(IntSet set); @Override int size(); @Override boolean isEmpty(); @Override boolean contains(Object o); @Override PrimitiveIterator.OfInt iterator(); @Override Object[] toArray(); @Override T[] toArray(T[] a); @Override int[] toIntArray(); @Override boolean containsAll(Collection<?> c); @Override IntStream intStream(); @Override void forEach(IntConsumer action); @Override void forEach(Consumer<? super Integer> action); @Override Spliterator.OfInt intSpliterator(); @Override Spliterator<Integer> spliterator(); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString(); }
SingletonIntSet extends AbstractImmutableIntSet { @Override public int[] toIntArray() { int[] array = new int[1]; array[0] = value; return array; } SingletonIntSet(int value); @Override boolean contains(int i); @Override boolean containsAll(IntSet set); @Override int size(); @Override boolean isEmpty(); @Override boolean contains(Object o); @Override PrimitiveIterator.OfInt iterator(); @Override Object[] toArray(); @Override T[] toArray(T[] a); @Override int[] toIntArray(); @Override boolean containsAll(Collection<?> c); @Override IntStream intStream(); @Override void forEach(IntConsumer action); @Override void forEach(Consumer<? super Integer> action); @Override Spliterator.OfInt intSpliterator(); @Override Spliterator<Integer> spliterator(); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString();  }