public final class Long extends Number implements Comparable<Long>
| Modifier and Type | Field and Description |
|---|---|
static long |
MAX_VALUE |
static long |
MIN_VALUE |
static Class<Long> |
TYPE |
| Constructor and Description |
|---|
Long(long value) |
| Modifier and Type | Method and Description |
|---|---|
byte |
byteValue() |
static int |
compare(long l1,
long l2) |
int |
compareTo(Long l) |
double |
doubleValue() |
boolean |
equals(Object obj) |
float |
floatValue() |
int |
hashCode() |
int |
intValue() |
long |
longValue() |
static long |
parseLong(String s) |
static long |
parseLong(String s,
int radix) |
String |
toString() |
static String |
toString(long i) |
static String |
toString(long i,
int radix) |
static Long |
valueOf(long i) |
shortValuepublic static final long MAX_VALUE
public static final long MIN_VALUE
public double doubleValue()
doubleValue in class Numberpublic float floatValue()
floatValue in class Numberpublic static long parseLong(String s) throws NumberFormatException
NumberFormatExceptionpublic static long parseLong(String s, int radix) throws NumberFormatException
NumberFormatExceptionpublic static String toString(long i)
public static String toString(long i, int radix)
public static Long valueOf(long i)
public static int compare(long l1,
long l2)
public int compareTo(Long l)
compareTo in interface Comparable<Long>Copyright © 2026. All rights reserved.