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

Class Boolean

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

Source from the content-addressed store, hash-verified

25/// The Boolean class wraps a value of the primitive type boolean in an object. An object of type Boolean contains a single field whose type is boolean.
26/// Since: JDK1.0, CLDC 1.0
27public final class Boolean{
28 /// The Boolean object corresponding to the primitive value false.
29 public static final java.lang.Boolean FALSE=null;
30
31 /// The Boolean object corresponding to the primitive value true.
32 public static final java.lang.Boolean TRUE=null;
33
34 /// Allocates a Boolean object representing the value argument.
35 /// value - the value of the Boolean.
36 public Boolean(boolean value){
37 //TODO codavaj!!
38 }
39
40 /// Returns the value of this Boolean object as a boolean primitive.
41 public boolean booleanValue(){
42 return false; //TODO codavaj!!
43 }
44
45 /// Returns true if and only if the argument is not null and is a Boolean object that represents the same boolean value as this object.
46 public boolean equals(java.lang.Object obj){
47 return false; //TODO codavaj!!
48 }
49
50 /// Returns a hash code for this Boolean object.
51 public int hashCode(){
52 return 0; //TODO codavaj!!
53 }
54
55 /// Returns a String object representing this Boolean's value. If this object represents the value true, a string equal to "true" is returned. Otherwise, a string equal to "false" is returned.
56 public java.lang.String toString(){
57 return null; //TODO codavaj!!
58 }
59
60 /// Returns the object instance of i
61 ///
62 /// #### Parameters
63 ///
64 /// - `b`: the primitive
65 ///
66 /// #### Returns
67 ///
68 /// object instance
69 public static Boolean valueOf(final boolean b) {
70 return b ? Boolean.TRUE : Boolean.FALSE;
71 }
72
73 public static Boolean valueOf(final String b) {
74 return valueOf(parseBoolean(b));
75 }
76
77 public static boolean parseBoolean(final String s) {
78 return (s != null) && s.equalsIgnoreCase("true");
79 }
80
81 public int compareTo(final Boolean b2) {
82 return 0;
83 }
84}

Callers 1

video.min.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected