{{tag>[java util stream collection_framework interface]}} ====== IntStream (java.util.stream) ====== * Since [[java:version:1.8|Java 1.8]] ===== Super Interfaces ===== * ''interface'' ''java.lang.AutoCloseable'' * ''interface'' ''java.util.stream.BaseStream'' ===== Nested Classes ===== ==== Builder ==== ''**IntStream**.**Builder**'' * ''default'' ''IntConsumer.**andThen**(after)'' → ''IntConsumer'': Returns a composed IntConsumer that performs, in sequence, this operation followed by the after operation. * ''IntConsumer'' ''after'' * ''default'' ''**IntStream**.**Builder**.**add**(t)'' → ''IntStream.Builder'': stream이 빌드 될 요소를 하나 추가한다. * ''int'' ''t'' * ''**IntStream**.**Builder**.**build**()'' → ''IntStream'': 스트림을 빌드한다. Builds the stream, transitioning this builder to the built state. * ''**IntStream**.**Builder**.**accept**(t)'': stream이 빌드 될 요소를 하나 추가한다. * ''int'' ''t'' ===== Methods ===== * ''static'' ''**IntStream**.**empty**()'' → ''IntStream'' * ''static'' ''**IntStream**.**concat**(a, b)'' → ''IntStream'' * ''IntStream'' ''a'' * ''IntStream'' ''b'' * ''static'' ''**IntStream**.**generate**(s)'' → ''IntStream'' * ''IntSupplier'' ''s'' * ''static'' ''**IntStream**.**iterate**(seed, f)'' → ''IntStream'' * ''int'' ''seed'' * ''IntUnaryOperator'' ''f'' * ''static'' ''**IntStream**.**of**(t)'' → ''IntStream'' \\ ''static'' ''**IntStream**.**of**(values)'' → ''IntStream'' * ''int'' ''t'' * ''int...'' ''values'' * ''static'' ''**IntStream**.**range**(startInclusive, endExclusive)'' → ''IntStream'': ++ note | for (int i = startInclusive; i < endExclusive ; i++) ++ * ''int'' ''startInclusive'' * ''int'' ''endExclusive'' * ''static'' ''**IntStream**.**rangeClosed**(startInclusive, endInclusive)'' → ''IntStream'': ++ note | for (int i = startInclusive; i <= endExclusive ; i++) ++ * ''int'' ''startInclusive'' * ''int'' ''endExclusive''