[ Web Proxy ]
URL:
Viewing: https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Integer.html#TYPE [Back]  [Original]

Integer (Java SE 25 & JDK 25)
Contents 
  1. Description
  2. Field Summary
  3. Constructor Summary
  4. Method Summary
  5. Field Details
    1. MIN_VALUE
    2. MAX_VALUE
    3. TYPE
    4. SIZE
    5. BYTES
  6. Constructor Details
    1. Integer(int)
    2. Integer(String)
  7. Method Details
    1. toString(int, int)
    2. toUnsignedString(int, int)
    3. toHexString(int)
    4. toOctalString(int)
    5. toBinaryString(int)
    6. toString(int)
    7. toUnsignedString(int)
    8. parseInt(String, int)
    9. parseInt(CharSequence, int, int, int)
    10. parseInt(String)
    11. parseUnsignedInt(String, int)
    12. parseUnsignedInt(CharSequence, int, int, int)
    13. parseUnsignedInt(String)
    14. valueOf(String, int)
    15. valueOf(String)
    16. valueOf(int)
    17. byteValue()
    18. shortValue()
    19. intValue()
    20. longValue()
    21. floatValue()
    22. doubleValue()
    23. toString()
    24. hashCode()
    25. hashCode(int)
    26. equals(Object)
    27. getInteger(String)
    28. getInteger(String, int)
    29. getInteger(String, Integer)
    30. decode(String)
    31. compareTo(Integer)
    32. compare(int, int)
    33. compareUnsigned(int, int)
    34. toUnsignedLong(int)
    35. divideUnsigned(int, int)
    36. remainderUnsigned(int, int)
    37. highestOneBit(int)
    38. lowestOneBit(int)
    39. numberOfLeadingZeros(int)
    40. numberOfTrailingZeros(int)
    41. bitCount(int)
    42. rotateLeft(int, int)
    43. rotateRight(int, int)
    44. reverse(int)
    45. compress(int, int)
    46. expand(int, int)
    47. signum(int)
    48. reverseBytes(int)
    49. sum(int, int)
    50. max(int, int)
    51. min(int, int)
    52. describeConstable()
    53. resolveConstantDesc(MethodHandles.Lookup)
Hide sidebar Hide sidebar [Hide sidebar]Show sidebar [Show sidebar] Show sidebar

Class Integer

java.lang.Object
java.lang.Number
java.lang.Integer
All Implemented Interfaces:
Serializable, Comparable<Integer>, Constable, ConstantDesc

public final class Integer extends Number implements Comparable<Integer>, Constable, ConstantDesc
The Integer class is the wrapper class for values of the primitive type int. An object of type Integer contains a single field whose type is int.

In addition, this class provides several methods for converting an int to a String and a String to an int, as well as other constants and methods useful when dealing with an int.

This is a value-based class; programmers should treat instances that are equal as interchangeable and should not use instances for synchronization, or unpredictable behavior may occur. For example, in a future release, synchronization may fail.

Implementation note: The implementations of the "bit twiddling" methods (such as highestOneBit and numberOfTrailingZeros) are based on material from Henry S. Warren, Jr.'s Hacker's Delight, (Addison Wesley, 2002) and Hacker's Delight, Second Edition, (Pearson Education, 2013).

Since:
1.0
See Also:


Web Proxy Viewer  |  New URL  |  Original Page