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

Class Byte

Ports/CLDC11/src/java/lang/Byte.java:27–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25/// The Byte class is the standard wrapper for byte values.
26/// Since: JDK1.1, CLDC 1.0
27public final class Byte extends Number implements Comparable<Byte> {
28
29 public static final Class<Byte> TYPE = byte.class;
30 public static final int SIZE = 8;
31 /// The maximum value a Byte can have.
32 /// See Also:Constant Field Values
33 public static final byte MAX_VALUE=127;
34
35 /// The minimum value a Byte can have.
36 /// See Also:Constant Field Values
37 public static final byte MIN_VALUE=-128;
38
39 /// Constructs a Byte object initialized to the specified byte value.
40 /// value - the initial value of the Byte
41 public Byte(byte value){
42 //TODO codavaj!!
43 }
44
45 /// Returns the value of this Byte as a byte.
46 public byte byteValue(){
47 return 0; //TODO codavaj!!
48 }
49
50 /// Compares this object to the specified object.
51 public boolean equals(java.lang.Object obj){
52 return false; //TODO codavaj!!
53 }
54
55 /// Returns a hashcode for this Byte.
56 public int hashCode(){
57 return 0; //TODO codavaj!!
58 }
59
60 /// Assuming the specified String represents a byte, returns that byte's value. Throws an exception if the String cannot be parsed as a byte. The radix is assumed to be 10.
61 public static byte parseByte(java.lang.String s) throws java.lang.NumberFormatException{
62 return 0; //TODO codavaj!!
63 }
64
65 /// Assuming the specified String represents a byte, returns that byte's value. Throws an exception if the String cannot be parsed as a byte.
66 public static byte parseByte(java.lang.String s, int radix) throws java.lang.NumberFormatException{
67 return 0; //TODO codavaj!!
68 }
69
70 /// Returns a String object representing this Byte's value.
71 public java.lang.String toString(){
72 return null; //TODO codavaj!!
73 }
74
75 /// Returns the object instance of i
76 ///
77 /// #### Parameters
78 ///
79 /// - `i`: the primitive
80 ///
81 /// #### Returns
82 ///
83 /// object instance
84 public static Byte valueOf(byte i) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected