|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dellroad.stuff.java.PrimitiveSwitchAdapter<R>
R - switch method return typepublic class PrimitiveSwitchAdapter<R>
Adapter class for PrimitiveSwitch implementations.
| Constructor Summary | |
|---|---|
PrimitiveSwitchAdapter()
|
|
| Method Summary | |
|---|---|
R |
caseBoolean()
Handle the Primitive.BOOLEAN case. |
R |
caseByte()
Handle the Primitive.BYTE case. |
R |
caseCharacter()
Handle the Primitive.CHARACTER case. |
protected R |
caseDefault()
Internal roll-up method. |
R |
caseDouble()
Handle the Primitive.DOUBLE case. |
R |
caseFloat()
Handle the Primitive.FLOAT case. |
R |
caseInteger()
Handle the Primitive.INTEGER case. |
R |
caseLong()
Handle the Primitive.LONG case. |
protected R |
caseNumber()
Internal roll-up method. |
R |
caseShort()
Handle the Primitive.SHORT case. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrimitiveSwitchAdapter()
| Method Detail |
|---|
public R caseBoolean()
Primitive.BOOLEAN case.
The implementation in PrimitiveSwitchAdapter delegates to caseDefault().
caseBoolean in interface PrimitiveSwitch<R>public R caseByte()
Primitive.BYTE case.
The implementation in PrimitiveSwitchAdapter delegates to caseNumber().
caseByte in interface PrimitiveSwitch<R>public R caseCharacter()
Primitive.CHARACTER case.
The implementation in PrimitiveSwitchAdapter delegates to caseDefault().
caseCharacter in interface PrimitiveSwitch<R>public R caseShort()
Primitive.SHORT case.
The implementation in PrimitiveSwitchAdapter delegates to caseNumber().
caseShort in interface PrimitiveSwitch<R>public R caseInteger()
Primitive.INTEGER case.
The implementation in PrimitiveSwitchAdapter delegates to caseNumber().
caseInteger in interface PrimitiveSwitch<R>public R caseFloat()
Primitive.FLOAT case.
The implementation in PrimitiveSwitchAdapter delegates to caseNumber().
caseFloat in interface PrimitiveSwitch<R>public R caseLong()
Primitive.LONG case.
The implementation in PrimitiveSwitchAdapter delegates to caseNumber().
caseLong in interface PrimitiveSwitch<R>public R caseDouble()
Primitive.DOUBLE case.
The implementation in PrimitiveSwitchAdapter delegates to caseNumber().
caseDouble in interface PrimitiveSwitch<R>protected R caseNumber()
PrimitiveSwitchAdapter delegates to caseDefault().
protected R caseDefault()
PrimitiveSwitchAdapter returns null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||