Brooklyn

brooklyn.util.javalang
[Java] Class Boxing

java.lang.Object
  brooklyn.util.javalang.Boxing

public class Boxing

Field Summary
static ImmutableBiMap PRIMITIVE_TO_BOXED

 
Method Summary
static java.lang.Class boxedType(java.lang.Class type)

static void setInArray(java.lang.Object target, int index, java.lang.Object value, java.lang.Class type)

sets the given element in an array to the indicated value; if the type is a primitive type, the appropriate primitive method is used

static boolean unboxSafely(java.lang.Boolean ref, boolean valueIfNull)

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Field Detail

PRIMITIVE_TO_BOXED

public static final ImmutableBiMap PRIMITIVE_TO_BOXED


 
Method Detail

boxedType

public static java.lang.Class boxedType(java.lang.Class type)


setInArray

public static void setInArray(java.lang.Object target, int index, java.lang.Object value, java.lang.Class type)
sets the given element in an array to the indicated value; if the type is a primitive type, the appropriate primitive method is used

this is needed because arrays do not deal with autoboxing


unboxSafely

public static boolean unboxSafely(java.lang.Boolean ref, boolean valueIfNull)


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.