MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / Long

Class Long

Ports/CLDC11/src/java/lang/Long.java:28–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26/// In addition, this class provides several methods for converting a long to a String and a String to a long, as well as other constants and methods useful when dealing with a long.
27/// Since: JDK1.0, CLDC 1.0
28public final class Long extends Number implements Comparable<Long>{
29 public static Class<Long> TYPE = long.class;
30 /// The largest value of type long.
31 /// See Also:Constant Field Values
32 public static final long MAX_VALUE=9223372036854775807l;
33
34 /// The smallest value of type long.
35 /// See Also:Constant Field Values
36 public static final long MIN_VALUE=-9223372036854775808l;
37
38 /// Constructs a newly allocated Long object that represents the primitive long argument.
39 /// value - the value to be represented by the Long object.
40 public Long(long value){
41 //TODO codavaj!!
42 }
43
44 /// Returns the value of this Long as a double.
45 public double doubleValue(){
46 return 0.0d; //TODO codavaj!!
47 }
48
49 /// Compares this object against the specified object. The result is true if and only if the argument is not null and is a Long object that contains the same long value as this object.
50 public boolean equals(java.lang.Object obj){
51 return false; //TODO codavaj!!
52 }
53
54 /// Returns the value of this Long as a float.
55 public float floatValue(){
56 return 0.0f; //TODO codavaj!!
57 }
58
59 /// Computes a hashcode for this Long. The result is the exclusive OR of the two halves of the primitive long value represented by this Long object. That is, the hashcode is the value of the expression: (int)(this.longValue()^(this.longValue()>>>32))
60 public int hashCode(){
61 return 0; //TODO codavaj!!
62 }
63
64 /// Returns the value of this Long as a long value.
65 public long longValue(){
66 return 0l; //TODO codavaj!!
67 }
68
69 /// Returns the value of this Long as an int value.
70 public int intValue() {
71 return 0;
72 }
73
74 /// Returns the value of this Long as a byte value.
75 public byte byteValue() {
76 return (byte)0;
77 }
78
79 /// Parses the string argument as a signed decimal long. The characters in the string must all be decimal digits, except that the first character may be an ASCII minus sign '-' (
80 /// u002d') to indicate a negative value. The resulting long value is returned, exactly as if the argument and the radix 10 were given as arguments to the
81 /// method that takes two arguments.
82 /// Note that neither L nor l is permitted to appear at the end of the string as a type indicator, as would be permitted in Java programming language source code.
83 public static long parseLong(java.lang.String s) throws java.lang.NumberFormatException{
84 return 0l; //TODO codavaj!!
85 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected