Search in sources :

Example 41 with Spliterator

use of java.util.Spliterator in project streamex by amaembo.

the class DoubleStreamExTest method testBasics.

@Test
public void testBasics() {
    assertFalse(DoubleStreamEx.of(1).isParallel());
    assertTrue(DoubleStreamEx.of(1).parallel().isParallel());
    assertFalse(DoubleStreamEx.of(1).parallel().sequential().isParallel());
    AtomicInteger i = new AtomicInteger();
    try (DoubleStreamEx s = DoubleStreamEx.of(1).onClose(i::incrementAndGet)) {
        assertEquals(1, s.count());
    }
    assertEquals(1, i.get());
    assertEquals(6, IntStreamEx.range(0, 4).asDoubleStream().sum(), 0);
    assertEquals(3, IntStreamEx.range(0, 4).asDoubleStream().max().getAsDouble(), 0);
    assertEquals(0, IntStreamEx.range(0, 4).asDoubleStream().min().getAsDouble(), 0);
    assertEquals(1.5, IntStreamEx.range(0, 4).asDoubleStream().average().getAsDouble(), 0.000001);
    assertEquals(4, IntStreamEx.range(0, 4).asDoubleStream().summaryStatistics().getCount());
    assertArrayEquals(new double[] { 1, 2, 3 }, IntStreamEx.range(0, 5).asDoubleStream().skip(1).limit(3).toArray(), 0.0);
    assertArrayEquals(new double[] { 1, 2, 3 }, DoubleStreamEx.of(3, 1, 2).sorted().toArray(), 0.0);
    assertArrayEquals(new double[] { 1, 2, 3 }, DoubleStreamEx.of(1, 2, 1, 3, 2).distinct().toArray(), 0.0);
    assertArrayEquals(new int[] { 2, 4, 6 }, IntStreamEx.range(1, 4).asDoubleStream().mapToInt(x -> (int) x * 2).toArray());
    assertArrayEquals(new long[] { 2, 4, 6 }, IntStreamEx.range(1, 4).asDoubleStream().mapToLong(x -> (long) x * 2).toArray());
    assertArrayEquals(new double[] { 2, 4, 6 }, IntStreamEx.range(1, 4).asDoubleStream().map(x -> x * 2).toArray(), 0.0);
    assertArrayEquals(new double[] { 1, 3 }, IntStreamEx.range(0, 5).asDoubleStream().filter(x -> x % 2 == 1).toArray(), 0.0);
    assertEquals(6.0, DoubleStreamEx.of(1.0, 2.0, 3.0).reduce(Double::sum).getAsDouble(), 0.0);
    assertEquals(Long.MAX_VALUE, LongStreamEx.rangeClosed(1, Long.MAX_VALUE).asDoubleStream().spliterator().getExactSizeIfKnown());
    assertArrayEquals(new double[] { 4, 2, 0, -2, -4 }, DoubleStreamEx.zip(new double[] { 5, 4, 3, 2, 1 }, new double[] { 1, 2, 3, 4, 5 }, (a, b) -> a - b).toArray(), 0.0);
    assertEquals("1.0; 0.5; 0.25; 0.125", DoubleStreamEx.of(1.0, 0.5, 0.25, 0.125).mapToObj(String::valueOf).joining("; "));
    List<Double> list = new ArrayList<>();
    DoubleStreamEx.of(1.0, 0.5, 0.25, 0.125).forEach(list::add);
    assertEquals(Arrays.asList(1.0, 0.5, 0.25, 0.125), list);
    list = new ArrayList<>();
    DoubleStreamEx.of(1.0, 0.5, 0.25, 0.125).parallel().forEachOrdered(list::add);
    assertEquals(Arrays.asList(1.0, 0.5, 0.25, 0.125), list);
    assertFalse(DoubleStreamEx.of(1.0, 2.0, 2.5).anyMatch(x -> x < 0.0));
    assertTrue(DoubleStreamEx.of(1.0, 2.0, 2.5).anyMatch(x -> x >= 2.5));
    assertTrue(DoubleStreamEx.of(1.0, 2.0, 2.5).noneMatch(x -> x < 0.0));
    assertFalse(DoubleStreamEx.of(1.0, 2.0, 2.5).noneMatch(x -> x >= 2.5));
    assertEquals(5.0, DoubleStreamEx.of(1.0, 2.0, 2.5).reduce(1, (a, b) -> a * b), 0.0);
    assertTrue(DoubleStreamEx.of(1, 2, 3).spliterator().hasCharacteristics(Spliterator.ORDERED));
    assertFalse(DoubleStreamEx.of(1, 2, 3).unordered().spliterator().hasCharacteristics(Spliterator.ORDERED));
    OfDouble iterator = DoubleStreamEx.of(1.0, 2.0, 3.0).iterator();
    assertEquals(1.0, iterator.next(), 0.0);
    assertEquals(2.0, iterator.next(), 0.0);
    assertEquals(3.0, iterator.next(), 0.0);
    assertFalse(iterator.hasNext());
}
Also used : MethodSorters(org.junit.runners.MethodSorters) Arrays(java.util.Arrays) Spliterators(java.util.Spliterators) DoubleStreamEx(one.util.streamex.DoubleStreamEx) OptionalDouble(java.util.OptionalDouble) DoubleFunction(java.util.function.DoubleFunction) Scanner(java.util.Scanner) Random(java.util.Random) AtomicReference(java.util.concurrent.atomic.AtomicReference) Function(java.util.function.Function) Supplier(java.util.function.Supplier) DoubleUnaryOperator(java.util.function.DoubleUnaryOperator) ArrayList(java.util.ArrayList) OfDouble(java.util.PrimitiveIterator.OfDouble) Assert.assertSame(org.junit.Assert.assertSame) DoubleBinaryOperator(java.util.function.DoubleBinaryOperator) AtomicInteger(java.util.concurrent.atomic.AtomicInteger) Locale(java.util.Locale) Map(java.util.Map) Assert.assertArrayEquals(org.junit.Assert.assertArrayEquals) Builder(java.util.stream.DoubleStream.Builder) LongStream(java.util.stream.LongStream) LongStreamEx(one.util.streamex.LongStreamEx) DoubleBuffer(java.nio.DoubleBuffer) TestHelpers.checkSpliterator(one.util.streamex.TestHelpers.checkSpliterator) Assert.assertTrue(org.junit.Assert.assertTrue) Test(org.junit.Test) DoubleToIntFunction(java.util.function.DoubleToIntFunction) DoubleStream(java.util.stream.DoubleStream) TestHelpers.streamEx(one.util.streamex.TestHelpers.streamEx) List(java.util.List) Assert.assertNull(org.junit.Assert.assertNull) DoubleToLongFunction(java.util.function.DoubleToLongFunction) StreamEx(one.util.streamex.StreamEx) Assert.assertFalse(org.junit.Assert.assertFalse) IntStreamEx(one.util.streamex.IntStreamEx) Comparator(java.util.Comparator) FixMethodOrder(org.junit.FixMethodOrder) Spliterator(java.util.Spliterator) Assert.assertEquals(org.junit.Assert.assertEquals) AtomicInteger(java.util.concurrent.atomic.AtomicInteger) ArrayList(java.util.ArrayList) OfDouble(java.util.PrimitiveIterator.OfDouble) OptionalDouble(java.util.OptionalDouble) OfDouble(java.util.PrimitiveIterator.OfDouble) DoubleStreamEx(one.util.streamex.DoubleStreamEx) Test(org.junit.Test)

Example 42 with Spliterator

use of java.util.Spliterator in project streamex by amaembo.

the class DoubleStreamExTest method testDropWhile.

@Test
public void testDropWhile() {
    assertArrayEquals(new double[] { 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 }, LongStreamEx.range(100).asDoubleStream().dropWhile(i -> i % 10 < 5).limit(10).toArray(), 0.0);
    assertEquals(100, LongStreamEx.range(100).asDoubleStream().sorted().dropWhile(i -> i % 10 < 0).count());
    assertEquals(0, LongStreamEx.range(100).asDoubleStream().dropWhile(i -> i % 10 < 10).count());
    assertEquals(OptionalDouble.of(0), LongStreamEx.range(100).asDoubleStream().dropWhile(i -> i % 10 < 0).findFirst());
    assertEquals(OptionalDouble.empty(), LongStreamEx.range(100).asDoubleStream().dropWhile(i -> i % 10 < 10).findFirst());
    java.util.Spliterator.OfDouble spltr = LongStreamEx.range(100).asDoubleStream().dropWhile(i -> i % 10 < 1).spliterator();
    assertTrue(spltr.tryAdvance((double x) -> assertEquals(1, x, 0.0)));
    Builder builder = DoubleStream.builder();
    spltr.forEachRemaining(builder);
    assertArrayEquals(LongStreamEx.range(2, 100).asDoubleStream().toArray(), builder.build().toArray(), 0.0);
}
Also used : MethodSorters(org.junit.runners.MethodSorters) Arrays(java.util.Arrays) Spliterators(java.util.Spliterators) DoubleStreamEx(one.util.streamex.DoubleStreamEx) OptionalDouble(java.util.OptionalDouble) DoubleFunction(java.util.function.DoubleFunction) Scanner(java.util.Scanner) Random(java.util.Random) AtomicReference(java.util.concurrent.atomic.AtomicReference) Function(java.util.function.Function) Supplier(java.util.function.Supplier) DoubleUnaryOperator(java.util.function.DoubleUnaryOperator) ArrayList(java.util.ArrayList) OfDouble(java.util.PrimitiveIterator.OfDouble) Assert.assertSame(org.junit.Assert.assertSame) DoubleBinaryOperator(java.util.function.DoubleBinaryOperator) AtomicInteger(java.util.concurrent.atomic.AtomicInteger) Locale(java.util.Locale) Map(java.util.Map) Assert.assertArrayEquals(org.junit.Assert.assertArrayEquals) Builder(java.util.stream.DoubleStream.Builder) LongStream(java.util.stream.LongStream) LongStreamEx(one.util.streamex.LongStreamEx) DoubleBuffer(java.nio.DoubleBuffer) TestHelpers.checkSpliterator(one.util.streamex.TestHelpers.checkSpliterator) Assert.assertTrue(org.junit.Assert.assertTrue) Test(org.junit.Test) DoubleToIntFunction(java.util.function.DoubleToIntFunction) DoubleStream(java.util.stream.DoubleStream) TestHelpers.streamEx(one.util.streamex.TestHelpers.streamEx) List(java.util.List) Assert.assertNull(org.junit.Assert.assertNull) DoubleToLongFunction(java.util.function.DoubleToLongFunction) StreamEx(one.util.streamex.StreamEx) Assert.assertFalse(org.junit.Assert.assertFalse) IntStreamEx(one.util.streamex.IntStreamEx) Comparator(java.util.Comparator) FixMethodOrder(org.junit.FixMethodOrder) Spliterator(java.util.Spliterator) Assert.assertEquals(org.junit.Assert.assertEquals) Builder(java.util.stream.DoubleStream.Builder) TestHelpers.checkSpliterator(one.util.streamex.TestHelpers.checkSpliterator) Spliterator(java.util.Spliterator) Test(org.junit.Test)

Example 43 with Spliterator

use of java.util.Spliterator in project streamex by amaembo.

the class IntStreamExTest method testBasics.

@Test
public void testBasics() {
    assertFalse(IntStreamEx.of(1).isParallel());
    assertTrue(IntStreamEx.of(1).parallel().isParallel());
    assertFalse(IntStreamEx.of(1).parallel().sequential().isParallel());
    AtomicInteger i = new AtomicInteger();
    try (IntStreamEx s = IntStreamEx.of(1).onClose(i::incrementAndGet)) {
        assertEquals(1, s.count());
    }
    assertEquals(1, i.get());
    assertEquals(6, IntStreamEx.range(0, 4).sum());
    assertEquals(3, IntStreamEx.range(0, 4).max().getAsInt());
    assertEquals(0, IntStreamEx.range(0, 4).min().getAsInt());
    assertEquals(1.5, IntStreamEx.range(0, 4).average().getAsDouble(), 0.000001);
    assertEquals(4, IntStreamEx.range(0, 4).summaryStatistics().getCount());
    assertArrayEquals(new int[] { 1, 2, 3 }, IntStreamEx.range(0, 5).skip(1).limit(3).toArray());
    assertArrayEquals(new int[] { 1, 2, 3 }, IntStreamEx.of(3, 1, 2).sorted().toArray());
    assertArrayEquals(new int[] { 1, 2, 3 }, IntStreamEx.of(1, 2, 1, 3, 2).distinct().toArray());
    assertArrayEquals(new int[] { 2, 4, 6 }, IntStreamEx.range(1, 4).map(x -> x * 2).toArray());
    assertArrayEquals(new long[] { 2, 4, 6 }, IntStreamEx.range(1, 4).mapToLong(x -> x * 2).toArray());
    assertArrayEquals(new double[] { 2, 4, 6 }, IntStreamEx.range(1, 4).mapToDouble(x -> x * 2).toArray(), 0.0);
    assertArrayEquals(new int[] { 1, 3 }, IntStreamEx.range(0, 5).filter(x -> x % 2 == 1).toArray());
    assertEquals(6, IntStreamEx.of(1, 2, 3).reduce(Integer::sum).getAsInt());
    assertEquals(Integer.MAX_VALUE, IntStreamEx.rangeClosed(1, Integer.MAX_VALUE).spliterator().getExactSizeIfKnown());
    assertTrue(IntStreamEx.of(1, 2, 3).spliterator().hasCharacteristics(Spliterator.ORDERED));
    assertFalse(IntStreamEx.of(1, 2, 3).unordered().spliterator().hasCharacteristics(Spliterator.ORDERED));
    OfInt iterator = IntStreamEx.of(1, 2, 3).iterator();
    assertEquals(1, iterator.nextInt());
    assertEquals(2, iterator.nextInt());
    assertEquals(3, iterator.nextInt());
    assertFalse(iterator.hasNext());
    List<Integer> list = new ArrayList<>();
    IntStreamEx.range(10).parallel().forEachOrdered(list::add);
    assertEquals(Arrays.asList(0, 1, 2, 3, 4, 5, 6, 7, 8, 9), list);
    assertTrue(IntStreamEx.empty().noneMatch(x -> true));
    assertFalse(IntStreamEx.of(1).noneMatch(x -> true));
    assertTrue(IntStreamEx.of(1).noneMatch(x -> false));
}
Also used : AtomicInteger(java.util.concurrent.atomic.AtomicInteger) OfInt(java.util.PrimitiveIterator.OfInt) IntStream(java.util.stream.IntStream) MethodSorters(org.junit.runners.MethodSorters) Arrays(java.util.Arrays) Builder(java.util.stream.IntStream.Builder) IntUnaryOperator(java.util.function.IntUnaryOperator) OfInt(java.util.PrimitiveIterator.OfInt) Spliterators(java.util.Spliterators) Assert.assertThrows(org.junit.Assert.assertThrows) Scanner(java.util.Scanner) AtomicBoolean(java.util.concurrent.atomic.AtomicBoolean) IntBinaryOperator(java.util.function.IntBinaryOperator) Random(java.util.Random) TestHelpers.withRandom(one.util.streamex.TestHelpers.withRandom) OptionalInt(java.util.OptionalInt) Function(java.util.function.Function) Supplier(java.util.function.Supplier) ArrayList(java.util.ArrayList) HashSet(java.util.HashSet) Assert.assertSame(org.junit.Assert.assertSame) TestHelpers.intStreamEx(one.util.streamex.TestHelpers.intStreamEx) ByteArrayInputStream(java.io.ByteArrayInputStream) IntBuffer(java.nio.IntBuffer) AtomicInteger(java.util.concurrent.atomic.AtomicInteger) Map(java.util.Map) Assert.assertArrayEquals(org.junit.Assert.assertArrayEquals) IntFunction(java.util.function.IntFunction) IntToDoubleFunction(java.util.function.IntToDoubleFunction) TestHelpers.checkSpliterator(one.util.streamex.TestHelpers.checkSpliterator) Assert.assertTrue(org.junit.Assert.assertTrue) IOException(java.io.IOException) Test(org.junit.Test) Collectors(java.util.stream.Collectors) TestHelpers.streamEx(one.util.streamex.TestHelpers.streamEx) UncheckedIOException(java.io.UncheckedIOException) List(java.util.List) IntToLongFunction(java.util.function.IntToLongFunction) StreamEx(one.util.streamex.StreamEx) Assert.assertFalse(org.junit.Assert.assertFalse) IntStreamEx(one.util.streamex.IntStreamEx) BitSet(java.util.BitSet) Comparator(java.util.Comparator) FixMethodOrder(org.junit.FixMethodOrder) Collections(java.util.Collections) Spliterator(java.util.Spliterator) Assert.assertEquals(org.junit.Assert.assertEquals) InputStream(java.io.InputStream) IntStreamEx(one.util.streamex.IntStreamEx) AtomicInteger(java.util.concurrent.atomic.AtomicInteger) ArrayList(java.util.ArrayList) Test(org.junit.Test)

Example 44 with Spliterator

use of java.util.Spliterator in project streamex by amaembo.

the class LongStreamExTest method testDropWhile.

@Test
public void testDropWhile() {
    assertArrayEquals(new long[] { 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 }, LongStreamEx.range(100).dropWhile(i -> i % 10 < 5).limit(10).toArray());
    assertEquals(100, LongStreamEx.range(100).dropWhile(i -> i % 10 < 0).count());
    assertEquals(0, LongStreamEx.range(100).dropWhile(i -> i % 10 < 10).count());
    assertEquals(OptionalLong.of(0), LongStreamEx.range(100).dropWhile(i -> i % 10 < 0).findFirst());
    assertEquals(OptionalLong.empty(), LongStreamEx.range(100).dropWhile(i -> i % 10 < 10).findFirst());
    java.util.Spliterator.OfLong spltr = LongStreamEx.range(100).dropWhile(i -> i % 10 < 1).spliterator();
    assertTrue(spltr.tryAdvance((long x) -> assertEquals(1, x)));
    Builder builder = LongStream.builder();
    spltr.forEachRemaining(builder);
    assertArrayEquals(LongStreamEx.range(2, 100).toArray(), builder.build().toArray());
}
Also used : MethodSorters(org.junit.runners.MethodSorters) Arrays(java.util.Arrays) LongBinaryOperator(java.util.function.LongBinaryOperator) Spliterators(java.util.Spliterators) Assert.assertThrows(org.junit.Assert.assertThrows) Scanner(java.util.Scanner) Random(java.util.Random) Builder(java.util.stream.LongStream.Builder) Function(java.util.function.Function) Supplier(java.util.function.Supplier) ArrayList(java.util.ArrayList) HashSet(java.util.HashSet) Assert.assertSame(org.junit.Assert.assertSame) OptionalLong(java.util.OptionalLong) AtomicInteger(java.util.concurrent.atomic.AtomicInteger) Map(java.util.Map) Assert.assertArrayEquals(org.junit.Assert.assertArrayEquals) OfLong(java.util.PrimitiveIterator.OfLong) LongToDoubleFunction(java.util.function.LongToDoubleFunction) LongToIntFunction(java.util.function.LongToIntFunction) LongStream(java.util.stream.LongStream) LongStreamEx(one.util.streamex.LongStreamEx) LongFunction(java.util.function.LongFunction) TestHelpers.checkSpliterator(one.util.streamex.TestHelpers.checkSpliterator) Assert.assertTrue(org.junit.Assert.assertTrue) Test(org.junit.Test) Collectors(java.util.stream.Collectors) LongConsumer(java.util.function.LongConsumer) TestHelpers.streamEx(one.util.streamex.TestHelpers.streamEx) AtomicLong(java.util.concurrent.atomic.AtomicLong) List(java.util.List) LongUnaryOperator(java.util.function.LongUnaryOperator) StreamEx(one.util.streamex.StreamEx) Assert.assertFalse(org.junit.Assert.assertFalse) LongBuffer(java.nio.LongBuffer) IntStreamEx(one.util.streamex.IntStreamEx) TestHelpers.longStreamEx(one.util.streamex.TestHelpers.longStreamEx) Comparator(java.util.Comparator) FixMethodOrder(org.junit.FixMethodOrder) Spliterator(java.util.Spliterator) Assert.assertEquals(org.junit.Assert.assertEquals) Builder(java.util.stream.LongStream.Builder) TestHelpers.checkSpliterator(one.util.streamex.TestHelpers.checkSpliterator) Spliterator(java.util.Spliterator) Test(org.junit.Test)

Example 45 with Spliterator

use of java.util.Spliterator in project myexcel by liaochong.

the class DefaultExcelReader method getAllPictures.

private void getAllPictures(Sheet sheet) {
    if (sheet instanceof XSSFSheet) {
        isXSSFSheet = true;
        XSSFDrawing xssfDrawing = ((XSSFSheet) sheet).getDrawingPatriarch();
        if (xssfDrawing == null) {
            return;
        }
        xssfPicturesMap = xssfDrawing.getShapes().stream().filter(s -> s instanceof XSSFPicture).map(s -> (XSSFPicture) s).collect(Collectors.toMap(s -> {
            XSSFClientAnchor anchor = (XSSFClientAnchor) s.getAnchor();
            return anchor.getRow1() + "_" + anchor.getCol1();
        }, s -> s));
    } else if (sheet instanceof HSSFSheet) {
        HSSFPatriarch hssfPatriarch = ((HSSFSheet) sheet).getDrawingPatriarch();
        if (hssfPatriarch == null) {
            return;
        }
        Spliterator<HSSFShape> spliterator = hssfPatriarch.spliterator();
        hssfPictureMap = new HashMap<>();
        spliterator.forEachRemaining(shape -> {
            if (shape instanceof HSSFPicture) {
                HSSFPicture picture = (HSSFPicture) shape;
                HSSFAnchor anchor = picture.getAnchor();
                if (anchor instanceof HSSFClientAnchor) {
                    int row = ((HSSFClientAnchor) anchor).getRow1();
                    int col = ((HSSFClientAnchor) anchor).getCol1();
                    hssfPictureMap.put(row + "_" + col, picture);
                }
            }
        });
    }
}
Also used : ReflectUtil(com.github.liaochong.myexcel.utils.ReflectUtil) XSSFPicture(org.apache.poi.xssf.usermodel.XSSFPicture) BiFunction(java.util.function.BiFunction) LoggerFactory(org.slf4j.LoggerFactory) HSSFClientAnchor(org.apache.poi.hssf.usermodel.HSSFClientAnchor) HashMap(java.util.HashMap) Function(java.util.function.Function) Supplier(java.util.function.Supplier) ByteArrayInputStream(java.io.ByteArrayInputStream) DataFormatter(org.apache.poi.ss.usermodel.DataFormatter) Map(java.util.Map) HSSFSheet(org.apache.poi.hssf.usermodel.HSSFSheet) Cell(org.apache.poi.ss.usermodel.Cell) LinkedList(java.util.LinkedList) HSSFShape(org.apache.poi.hssf.usermodel.HSSFShape) WorkbookFactory(org.apache.poi.ss.usermodel.WorkbookFactory) Sheet(org.apache.poi.ss.usermodel.Sheet) Logger(org.slf4j.Logger) ReadConverterContext(com.github.liaochong.myexcel.core.converter.ReadConverterContext) Predicate(java.util.function.Predicate) IOException(java.io.IOException) Field(java.lang.reflect.Field) ExcelReadException(com.github.liaochong.myexcel.exception.ExcelReadException) HSSFPicture(org.apache.poi.hssf.usermodel.HSSFPicture) Collectors(java.util.stream.Collectors) File(java.io.File) Objects(java.util.Objects) Consumer(java.util.function.Consumer) Workbook(org.apache.poi.ss.usermodel.Workbook) List(java.util.List) XSSFClientAnchor(org.apache.poi.xssf.usermodel.XSSFClientAnchor) HSSFAnchor(org.apache.poi.hssf.usermodel.HSSFAnchor) XSSFDrawing(org.apache.poi.xssf.usermodel.XSSFDrawing) StringUtil(com.github.liaochong.myexcel.utils.StringUtil) EncryptedDocumentException(org.apache.poi.EncryptedDocumentException) XSSFSheet(org.apache.poi.xssf.usermodel.XSSFSheet) Row(org.apache.poi.ss.usermodel.Row) ConvertContext(com.github.liaochong.myexcel.core.converter.ConvertContext) HSSFPatriarch(org.apache.poi.hssf.usermodel.HSSFPatriarch) ExcelColumn(com.github.liaochong.myexcel.core.annotation.ExcelColumn) Collections(java.util.Collections) Spliterator(java.util.Spliterator) ConfigurationUtil(com.github.liaochong.myexcel.utils.ConfigurationUtil) ClassFieldContainer(com.github.liaochong.myexcel.core.reflect.ClassFieldContainer) InputStream(java.io.InputStream) HSSFPatriarch(org.apache.poi.hssf.usermodel.HSSFPatriarch) XSSFSheet(org.apache.poi.xssf.usermodel.XSSFSheet) HSSFClientAnchor(org.apache.poi.hssf.usermodel.HSSFClientAnchor) HashMap(java.util.HashMap) XSSFClientAnchor(org.apache.poi.xssf.usermodel.XSSFClientAnchor) HSSFAnchor(org.apache.poi.hssf.usermodel.HSSFAnchor) XSSFPicture(org.apache.poi.xssf.usermodel.XSSFPicture) HSSFSheet(org.apache.poi.hssf.usermodel.HSSFSheet) HSSFPicture(org.apache.poi.hssf.usermodel.HSSFPicture) XSSFDrawing(org.apache.poi.xssf.usermodel.XSSFDrawing) Spliterator(java.util.Spliterator)

Aggregations

Spliterator (java.util.Spliterator)113 List (java.util.List)43 ArrayList (java.util.ArrayList)35 HashSet (java.util.HashSet)32 IntConsumer (java.util.function.IntConsumer)32 Set (java.util.Set)27 Objects (java.util.Objects)24 Function (java.util.function.Function)24 Spliterators (java.util.Spliterators)23 Stream (java.util.stream.Stream)22 Collectors (java.util.stream.Collectors)21 Iterator (java.util.Iterator)20 Map (java.util.Map)20 Consumer (java.util.function.Consumer)20 LongConsumer (java.util.function.LongConsumer)19 Comparator (java.util.Comparator)18 StreamSupport (java.util.stream.StreamSupport)18 Arrays (java.util.Arrays)17 Supplier (java.util.function.Supplier)17 Collections (java.util.Collections)16