Class TypeBean
java.lang.Object
ee.jakarta.tck.pages.spec.core_syntax.scripting.el.TypeBean
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TypeBeanChild
Simple bean to return all primitive and their respective boxed types.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a BigDecimalReturns a BigInteger.getBite()Returns a Byte.booleanReturns a boolean primitive.getBooln()Returns a Boolean.byteReturns a byte primitive.charReturns a char primitive.getChr()Returns a Character.getDble()Returns a Double.doubleReturns a double primitive.floatReturns a float primitive.getFlote()Returns a Float.getInti()Returns an Integer.intReturns an int primitivegetLng()Returns a Long.longReturns a long primitive.shortReturns a short primitive.getShrt()Returns a Short.booleanReturns a Boolean (of value true).voidSets a Byte.voidsetBooleanPrim(boolean b) Sets a boolean primitive.voidSets a Boolean.voidsetBytePrim(byte b) Sets a byte primitivevoidsetCharPrim(char c) Sets a char primitive.voidSets a Character.voidSets a Double.voidsetDoublePrim(double d) Sets a double primitive.voidsetFloatPrim(float f) Sets a float primitive.voidSets a Float.voidSets an Integer.voidsetIntPrim(int i) Sets an int primitivevoidSets a Long.voidsetLongPrim(long l) Sets a long primitive.voidsetShortPrim(short s) Sets a short primitive.voidSets a Short.toString()Returns information about this simple bean.
-
Constructor Details
-
TypeBean
public TypeBean()
-
-
Method Details
-
getBigInt
Returns a BigInteger.- Returns:
- a BigInteger
-
getBigDec
Returns a BigDecimal- Returns:
- a BigDecimal
-
getBytePrim
public byte getBytePrim()Returns a byte primitive.- Returns:
- a byte primitive
-
setBytePrim
public void setBytePrim(byte b) Sets a byte primitive- Parameters:
b- - a byte primitive
-
getCharPrim
public char getCharPrim()Returns a char primitive.- Returns:
- a char primitive
-
setCharPrim
public void setCharPrim(char c) Sets a char primitive.- Parameters:
c- - a char primitive
-
getShortPrim
public short getShortPrim()Returns a short primitive.- Returns:
- a short primitive
-
setShortPrim
public void setShortPrim(short s) Sets a short primitive.- Parameters:
s- - a short primitive
-
getIntPrim
public int getIntPrim()Returns an int primitive- Returns:
- an int primitive
-
setIntPrim
public void setIntPrim(int i) Sets an int primitive- Parameters:
i- - an int primitive
-
getLongPrim
public long getLongPrim()Returns a long primitive.- Returns:
- a long primitive
-
setLongPrim
public void setLongPrim(long l) Sets a long primitive.- Parameters:
l- - a long primitive
-
getFloatPrim
public float getFloatPrim()Returns a float primitive.- Returns:
- a float primtitive
-
setFloatPrim
public void setFloatPrim(float f) Sets a float primitive.- Parameters:
f- - a float primitive
-
getDoublePrim
public double getDoublePrim()Returns a double primitive.- Returns:
- a double primitive
-
setDoublePrim
public void setDoublePrim(double d) Sets a double primitive.- Parameters:
d- - a double primitive
-
setBooleanPrim
public void setBooleanPrim(boolean b) Sets a boolean primitive.- Parameters:
b- - a boolean primitive
-
getBooleanPrim
public boolean getBooleanPrim()Returns a boolean primitive.- Returns:
- a boolean primitive.
-
getBite
Returns a Byte.- Returns:
- a Byte
-
setBite
Sets a Byte.- Parameters:
bb- - a Byte
-
getChr
Returns a Character.- Returns:
- a Character
-
setChr
Sets a Character.- Parameters:
cc- - a Character
-
getShrt
Returns a Short.- Returns:
- a Short
-
setShrt
Sets a Short.- Parameters:
ss- - a Short
-
getInti
Returns an Integer.- Returns:
- an Integer
-
setInti
Sets an Integer.- Parameters:
ii- - an Integer
-
getLng
Returns a Long.- Returns:
- a Long
-
setLng
Sets a Long.- Parameters:
ll- - a Long
-
getFlote
Returns a Float.- Returns:
- a Float
-
setFlote
Sets a Float.- Parameters:
ff- - a Float
-
getDble
Returns a Double.- Returns:
- - a Double
-
setDble
Sets a Double.- Parameters:
dd- - a Double
-
setBooln
Sets a Boolean.- Parameters:
b- - a Boolean
-
getBooln
Returns a Boolean.- Returns:
- a Boolean
-
isCallable
public boolean isCallable()Returns a Boolean (of value true).- Returns:
- a true Boolean
-
toString
Returns information about this simple bean.
-