computer term referring to a Java class in object-oriented programming
プリミティブラッパークラス (英: primitive wrapper class) とは、Javaにおける、プリミティブ型をラップする<a rel="nofollow" class="external text" href="https://docs.oracle.com/javase/jp/9/docs/api/java/lang/package-summary.html">java.lang</a> パッケージが提供する8つのクラスのこと。プリミティブラッパークラスは不変であり、オブジェクト指向のメソッドを提供する。 Javaにおけるプリミティブ型はオブジェクト型ではなく、そのままではオブジェクトとして扱うことができない。プリミティブラッパークラスはプリミティブ型の値に対応した<a rel="nofollow" class="external text" href="https://docs.oracle.com/javase/jp/9/docs/api/java/lang/Object.html">Object</a>が必要なときにそれを表すものとして使われている。ラッパークラスは<a rel="nofollow" class="external text" href="https://docs.oracle.com/javase/jp/9/docs/api/java/util/package-summary.html">java.util</a>パッケージにある<a rel="nofollow" class="external text" href="https://docs.oracle.com/javase/jp/9/docs/api/java/util/Collection.html">Collection</a>クラス群、<a rel="nofollow" class="external text" href="https://docs.oracle.com/javase/jp/9/docs/api/java/lang/reflect/package-summary.html">java.lang.reflect</a>パッケージにあるリフレクション用クラス群とともに広く使われている。 プリミティブ型の値からラッパーオブジェクトに変換することを「ボックス化」(ボクシング)、ラッパーオブジェクトからプリミティブ型の値に変換することを「ボックス化解除」(アンボクシング)と呼ぶ。 Java SE 5.0からは、ラッパーオブジェクトとプリミティブ型の値との間の暗黙の変換機能として、プリミティブ型の値からラッパーオブジェクトに暗黙変換できる「自動ボックス化」(オートボクシング)と、ラッパーオブジェクトからプリミティブ型の値に暗黙変換できる「自動ボックス化解除」(オートアンボクシング)が導入された。 プリミティブラッパークラスとそれらに相当するプリミティブ型: ラッパークラスByte, Short, Integer, Long, Float, Double はすべて<a rel="nofollow" class="external text" href="https://docs.oracle.com/javase/jp/9/docs/api/java/lang/Number.html">Number</a>のサブクラスである。 Javaには組み込みの符号無し整数型は存在しないが、プリミティブラッパークラスには、ビット列を符号無し整数とみなして扱うためのメソッドがいくつか用意されている(<a rel="nofollow" class="external text" href="https://docs.oracle.com/javase/jp/9/docs/api/java/lang/Integer.html#compareUnsigned-int-int-">Integer.compareUnsigned(int, int)</a>と<a rel="nofollow" class="external text" href="https://docs.oracle.com/javase/jp/9/docs/api/java/lang/Long.html#compareUnsigned-long-long-">Long.compareUnsigned(long, long)</a>はJava 8以降、<a rel="nofollow" class="external text" href="https://docs.oracle.com/javase/jp/9/docs/api/java/lang/Byte.html#compareUnsigned-byte-byte-">Byte.compareUnsigned(byte, byte)</a>と<a rel="nofollow" class="external text" href="https://docs.oracle.com/javase/jp/9/docs/api/java/lang/Short.html#compareUnsigned-short-short-">Short.compareUnsigned(short, short)</a>はJava 9以降)。
Abstract from DBpedia / Wikipedia · CC BY-SA
Discovered by embedding cosine similarity (sentence-transformers MiniLM, 384-dim).