<divclass="inheritance"title="Inheritance Tree"><ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Object.html?is-external=true"title="class or interface in java.lang"class="externalLink">java.lang.Object</a>
extends <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Object.html?is-external=true"title="class or interface in java.lang"class="externalLink">Object</a></pre>
<divclass="block">An utility class to prevent overflows while casting <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Long.html?is-external=true"title="class or interface in java.lang"class="externalLink"><code>Longs</code></a> to <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Integer.html?is-external=true"title="class or interface in java.lang"class="externalLink"><code>Integers</code></a>.</div>
<divclass="block">Cast a long to an int, returning <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Integer.html?is-external=true#MAX_VALUE"title="class or interface in java.lang"class="externalLink"><code>Integer.MAX_VALUE</code></a> if the value of the long exceeds the value of
<ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Integer.html?is-external=true#MAX_VALUE"title="class or interface in java.lang"class="externalLink"><code>Integer.MAX_VALUE</code></a>, <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Integer.html?is-external=true#MIN_VALUE"title="class or interface in java.lang"class="externalLink"><code>Integer.MIN_VALUE</code></a> if the value of the long is lower than <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Integer.html?is-external=true#MIN_VALUE"title="class or interface in java.lang"class="externalLink"><code>Integer.MIN_VALUE</code></a> and the result of the
<h3>Methods inherited from class java.lang.<ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Object.html?is-external=true"title="class or interface in java.lang"class="externalLink">Object</a></h3>
</a><code><ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Object.html?is-external=true#clone()"title="class or interface in java.lang"class="externalLink">clone</a>, <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Object.html?is-external=true#equals(java.lang.Object)"title="class or interface in java.lang"class="externalLink">equals</a>, <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Object.html?is-external=true#getClass()"title="class or interface in java.lang"class="externalLink">getClass</a>, <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Object.html?is-external=true#hashCode()"title="class or interface in java.lang"class="externalLink">hashCode</a>, <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Object.html?is-external=true#notify()"title="class or interface in java.lang"class="externalLink">notify</a>, <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Object.html?is-external=true#notifyAll()"title="class or interface in java.lang"class="externalLink">notifyAll</a>, <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Object.html?is-external=true#toString()"title="class or interface in java.lang"class="externalLink">toString</a>, <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Object.html?is-external=true#wait()"title="class or interface in java.lang"class="externalLink">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Object.html?is-external=true#wait(long)"title="class or interface in java.lang"class="externalLink">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Object.html?is-external=true#wait(long,int)"title="class or interface in java.lang"class="externalLink">wait</a></code></div>
<divclass="block">Cast a long to an int, returning <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Integer.html?is-external=true#MAX_VALUE"title="class or interface in java.lang"class="externalLink"><code>Integer.MAX_VALUE</code></a> if the value of the long exceeds the value of
<ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Integer.html?is-external=true#MAX_VALUE"title="class or interface in java.lang"class="externalLink"><code>Integer.MAX_VALUE</code></a>, <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Integer.html?is-external=true#MIN_VALUE"title="class or interface in java.lang"class="externalLink"><code>Integer.MIN_VALUE</code></a> if the value of the long is lower than <ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Integer.html?is-external=true#MIN_VALUE"title="class or interface in java.lang"class="externalLink"><code>Integer.MIN_VALUE</code></a> and the result of the