<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>Spliterator.OfInt (Java SE 12 &amp; JDK 12 )</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="keywords" content="java.util.Spliterator.OfInt interface">
<meta name="keywords" content="trySplit()">
<meta name="keywords" content="tryAdvance()">
<meta name="keywords" content="forEachRemaining()">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
<script type="text/javascript" src="../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../jquery/jquery-3.3.1.js"></script>
<script type="text/javascript" src="../../../jquery/jquery-migrate-3.0.1.js"></script>
<script type="text/javascript" src="../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
    try {
        if (location.href.indexOf('is-external=true') == -1) {
            parent.document.title="Spliterator.OfInt (Java SE 12 & JDK 12 )";
        }
    }
    catch(err) {
    }
//-->
var data = {"i0":18,"i1":18};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],16:["t5","Default Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../";
var useModuleDirectories = true;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../index.html">Overview</a></li>
<li><a href="../../module-summary.html">Module</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Spliterator.OfInt.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><div style="margin-top: 14px;"><strong>Java SE 12 &amp; JDK 12</strong> </div></div>
</div>
<div class="subNav">
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
</div>
<a id="skip.navbar.top">
<!--   -->
</a>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<!-- ======== START OF CLASS DATA ======== -->
<main role="main">
<div class="header">
<div class="subTitle"><span class="moduleLabelInType">Module</span>&nbsp;<a href="../../module-summary.html">java.base</a></div>
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">java.util</a></div>
<h2 title="Interface Spliterator.OfInt" class="title">Interface Spliterator.OfInt</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Superinterfaces:</dt>
<dd><code><a href="Spliterator.html" title="interface in java.util">Spliterator</a>&lt;<a href="../lang/Integer.html" title="class in java.lang">Integer</a>&gt;</code>, <code><a href="Spliterator.OfPrimitive.html" title="interface in java.util">Spliterator.OfPrimitive</a>&lt;<a href="../lang/Integer.html" title="class in java.lang">Integer</a>,&#8203;<a href="function/IntConsumer.html" title="interface in java.util.function">IntConsumer</a>,&#8203;<a href="Spliterator.OfInt.html" title="interface in java.util">Spliterator.OfInt</a>&gt;</code></dd>
</dl>
<dl>
<dt>All Known Implementing Classes:</dt>
<dd><code><a href="Spliterators.AbstractIntSpliterator.html" title="class in java.util">Spliterators.AbstractIntSpliterator</a></code></dd>
</dl>
<dl>
<dt>Enclosing interface:</dt>
<dd><a href="Spliterator.html" title="interface in java.util">Spliterator</a>&lt;<a href="Spliterator.html" title="type parameter in Spliterator">T</a>&gt;</dd>
</dl>
<hr>
<pre>public static interface <span class="typeNameLabel">Spliterator.OfInt</span>
extends <a href="Spliterator.OfPrimitive.html" title="interface in java.util">Spliterator.OfPrimitive</a>&lt;<a href="../lang/Integer.html" title="class in java.lang">Integer</a>,&#8203;<a href="function/IntConsumer.html" title="interface in java.util.function">IntConsumer</a>,&#8203;<a href="Spliterator.OfInt.html" title="interface in java.util">Spliterator.OfInt</a>&gt;</pre>
<div class="block">A Spliterator specialized for <code>int</code> values.</div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>1.8</dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="nested.class.summary">
<!--   -->
</a>
<h3>Nested Class Summary</h3>
<ul class="blockList">
<li class="blockList"><a id="nested.classes.inherited.from.class.java.util.Spliterator">
<!--   -->
</a>
<h3>Nested classes/interfaces declared in interface&nbsp;java.util.<a href="Spliterator.html" title="interface in java.util">Spliterator</a></h3>
<code><a href="Spliterator.OfDouble.html" title="interface in java.util">Spliterator.OfDouble</a>, <a href="Spliterator.OfInt.html" title="interface in java.util">Spliterator.OfInt</a>, <a href="Spliterator.OfLong.html" title="interface in java.util">Spliterator.OfLong</a>, <a href="Spliterator.OfPrimitive.html" title="interface in java.util">Spliterator.OfPrimitive</a>&lt;<a href="Spliterator.OfPrimitive.html" title="type parameter in Spliterator.OfPrimitive">T</a>,&#8203;<a href="Spliterator.OfPrimitive.html" title="type parameter in Spliterator.OfPrimitive">T_CONS</a>,&#8203;<a href="Spliterator.OfPrimitive.html" title="type parameter in Spliterator.OfPrimitive">T_SPLITR</a> extends <a href="Spliterator.OfPrimitive.html" title="interface in java.util">Spliterator.OfPrimitive</a>&lt;<a href="Spliterator.OfPrimitive.html" title="type parameter in Spliterator.OfPrimitive">T</a>,&#8203;<a href="Spliterator.OfPrimitive.html" title="type parameter in Spliterator.OfPrimitive">T_CONS</a>,&#8203;<a href="Spliterator.OfPrimitive.html" title="type parameter in Spliterator.OfPrimitive">T_SPLITR</a>&gt;&gt;</code></li>
</ul>
</li>
</ul>
</section>
<!-- =========== FIELD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.summary">
<!--   -->
</a>
<h3>Field Summary</h3>
<ul class="blockList">
<li class="blockList"><a id="fields.inherited.from.class.java.util.Spliterator">
<!--   -->
</a>
<h3>Fields declared in interface&nbsp;java.util.<a href="Spliterator.html" title="interface in java.util">Spliterator</a></h3>
<code><a href="Spliterator.html#CONCURRENT">CONCURRENT</a>, <a href="Spliterator.html#DISTINCT">DISTINCT</a>, <a href="Spliterator.html#IMMUTABLE">IMMUTABLE</a>, <a href="Spliterator.html#NONNULL">NONNULL</a>, <a href="Spliterator.html#ORDERED">ORDERED</a>, <a href="Spliterator.html#SIZED">SIZED</a>, <a href="Spliterator.html#SORTED">SORTED</a>, <a href="Spliterator.html#SUBSIZED">SUBSIZED</a></code></li>
</ul>
</li>
</ul>
</section>
<!-- ========== METHOD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<div class="memberSummary">
<div role="tablist" aria-orientation="horizontal"><button role="tab" aria-selected="true" aria-controls="memberSummary_tabpanel" tabindex="0" onkeydown="switchTab(event)" id="t0" class="activeTableTab">All Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t2" class="tableTab" onclick="show(2);">Instance Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t5" class="tableTab" onclick="show(16);">Default Methods</button></div>
<div id="memberSummary_tabpanel" role="tabpanel">
<table aria-labelledby="t0">
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor" id="i0">
<td class="colFirst"><code>default void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#forEachRemaining(java.util.function.Consumer)">forEachRemaining</a></span>&#8203;(<a href="function/Consumer.html" title="interface in java.util.function">Consumer</a>&lt;? super <a href="../lang/Integer.html" title="class in java.lang">Integer</a>&gt;&nbsp;action)</code></th>
<td class="colLast">
<div class="block">Performs the given action for each remaining element, sequentially in
 the current thread, until all elements have been processed or the action
 throws an exception.</div>
</td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code>default boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#tryAdvance(java.util.function.Consumer)">tryAdvance</a></span>&#8203;(<a href="function/Consumer.html" title="interface in java.util.function">Consumer</a>&lt;? super <a href="../lang/Integer.html" title="class in java.lang">Integer</a>&gt;&nbsp;action)</code></th>
<td class="colLast">
<div class="block">If a remaining element exists, performs the given action on it,
 returning <code>true</code>; else returns <code>false</code>.</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.java.util.Spliterator">
<!--   -->
</a>
<h3>Methods declared in interface&nbsp;java.util.<a href="Spliterator.html" title="interface in java.util">Spliterator</a></h3>
<code><a href="Spliterator.html#characteristics()">characteristics</a>, <a href="Spliterator.html#estimateSize()">estimateSize</a>, <a href="Spliterator.html#getComparator()">getComparator</a>, <a href="Spliterator.html#getExactSizeIfKnown()">getExactSizeIfKnown</a>, <a href="Spliterator.html#hasCharacteristics(int)">hasCharacteristics</a>, <a href="Spliterator.html#trySplit()">trySplit</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.java.util.Spliterator.OfPrimitive">
<!--   -->
</a>
<h3>Methods declared in interface&nbsp;java.util.<a href="Spliterator.OfPrimitive.html" title="interface in java.util">Spliterator.OfPrimitive</a></h3>
<code><a href="Spliterator.OfPrimitive.html#forEachRemaining(T_CONS)">forEachRemaining</a>, <a href="Spliterator.OfPrimitive.html#tryAdvance(T_CONS)">tryAdvance</a></code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a id="tryAdvance(java.util.function.Consumer)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>tryAdvance</h4>
<pre class="methodSignature">default&nbsp;boolean&nbsp;tryAdvance&#8203;(<a href="function/Consumer.html" title="interface in java.util.function">Consumer</a>&lt;? super <a href="../lang/Integer.html" title="class in java.lang">Integer</a>&gt;&nbsp;action)</pre>
<div class="block">If a remaining element exists, performs the given action on it,
 returning <code>true</code>; else returns <code>false</code>.  If this
 Spliterator is <a href="Spliterator.html#ORDERED"><code>Spliterator.ORDERED</code></a> the action is performed on the
 next element in encounter order.  Exceptions thrown by the
 action are relayed to the caller.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="Spliterator.html#tryAdvance(java.util.function.Consumer)">tryAdvance</a></code>&nbsp;in interface&nbsp;<code><a href="Spliterator.html" title="interface in java.util">Spliterator</a>&lt;<a href="../lang/Integer.html" title="class in java.lang">Integer</a>&gt;</code></dd>
<dt><span class="simpleTagLabel">Implementation Requirements:</span></dt>
<dd>If the action is an instance of <code>IntConsumer</code> then it is cast
 to <code>IntConsumer</code> and passed to
 <a href="Spliterator.OfPrimitive.html#tryAdvance(T_CONS)"><code>Spliterator.OfPrimitive.tryAdvance(java.util.function.IntConsumer)</code></a>; otherwise
 the action is adapted to an instance of <code>IntConsumer</code>, by
 boxing the argument of <code>IntConsumer</code>, and then passed to
 <a href="Spliterator.OfPrimitive.html#tryAdvance(T_CONS)"><code>Spliterator.OfPrimitive.tryAdvance(java.util.function.IntConsumer)</code></a>.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>action</code> - The action</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>false</code> if no remaining elements existed
 upon entry to this method, else <code>true</code>.</dd>
</dl>
</li>
</ul>
<a id="forEachRemaining(java.util.function.Consumer)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>forEachRemaining</h4>
<pre class="methodSignature">default&nbsp;void&nbsp;forEachRemaining&#8203;(<a href="function/Consumer.html" title="interface in java.util.function">Consumer</a>&lt;? super <a href="../lang/Integer.html" title="class in java.lang">Integer</a>&gt;&nbsp;action)</pre>
<div class="block">Performs the given action for each remaining element, sequentially in
 the current thread, until all elements have been processed or the action
 throws an exception.  If this Spliterator is <a href="Spliterator.html#ORDERED"><code>Spliterator.ORDERED</code></a>, actions
 are performed in encounter order.  Exceptions thrown by the action
 are relayed to the caller.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="Spliterator.html#forEachRemaining(java.util.function.Consumer)">forEachRemaining</a></code>&nbsp;in interface&nbsp;<code><a href="Spliterator.html" title="interface in java.util">Spliterator</a>&lt;<a href="../lang/Integer.html" title="class in java.lang">Integer</a>&gt;</code></dd>
<dt><span class="simpleTagLabel">Implementation Requirements:</span></dt>
<dd>If the action is an instance of <code>IntConsumer</code> then it is cast
 to <code>IntConsumer</code> and passed to
 <a href="Spliterator.OfPrimitive.html#forEachRemaining(T_CONS)"><code>Spliterator.OfPrimitive.forEachRemaining(java.util.function.IntConsumer)</code></a>; otherwise
 the action is adapted to an instance of <code>IntConsumer</code>, by
 boxing the argument of <code>IntConsumer</code>, and then passed to
 <a href="Spliterator.OfPrimitive.html#forEachRemaining(T_CONS)"><code>Spliterator.OfPrimitive.forEachRemaining(java.util.function.IntConsumer)</code></a>.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>action</code> - The action</dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>
<!-- ========= END OF CLASS DATA ========= -->
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../index.html">Overview</a></li>
<li><a href="../../module-summary.html">Module</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Spliterator.OfInt.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><div style="margin-top: 14px;"><strong>Java SE 12 &amp; JDK 12</strong> </div></div>
</div>
<div class="subNav">
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
</div>
<a id="skip.navbar.bottom">
<!--   -->
</a>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
<p class="legalCopy"><small><a href="https://bugreport.java.com/bugreport/">Report a bug or suggest an enhancement</a><br> For further API reference and developer documentation see the <a href="https://docs.oracle.com/pls/topic/lookup?ctx=javase12.0.2&amp;id=homepage" target="_blank">Java SE Documentation</a>, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.<br> Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.<br> <a href="../../../../legal/copyright.html">Copyright</a> &copy; 1993, 2019, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.<br>All rights reserved. Use is subject to <a href="https://www.oracle.com/technetwork/java/javase/terms/license/java12.0.2speclicense.html">license terms</a> and the <a href="https://www.oracle.com/technetwork/java/redist-137594.html">documentation redistribution policy</a>. <!-- Version 12.0.2+10 --></small></p>
</footer>
</body>
</html>
