public static class TrueFalseAdapter.Adapter
extends java.lang.Object
TrueFalseAdapter
.Constructor and Description |
---|
TrueFalseAdapter.Adapter(java.lang.Class<?> type,
java.lang.String propertyName,
boolean lenient) |
TrueFalseAdapter.Adapter(java.lang.Class<?> type,
java.lang.String propertyName,
TrueFalseAdapter ann) |
Modifier and Type | Method and Description |
---|---|
boolean |
adaptToBoolean(char value)
Adapts a character 'T' or 'F' to true or false.
|
boolean |
adaptToBoolean(java.lang.Character value)
Adapts a character 'T' or 'F' to true or false.
|
boolean |
adaptToBoolean(java.lang.String value)
Adapts a character "T" or "F" to true or false.
|
java.lang.Boolean |
adaptToBooleanObj(char value)
Adapts a character 'T' or 'F' to true or false.
|
java.lang.Boolean |
adaptToBooleanObj(java.lang.Character value)
Adapts a character 'T' or 'F' to true or false.
|
java.lang.Boolean |
adaptToBooleanObj(java.lang.String value)
Adapts a character "T" or "F" to true or false.
|
char |
adaptToChar(boolean value)
Adapts a boolean true or false into 'T' or 'F'.
|
char |
adaptToChar(java.lang.Boolean value)
Adapts a boolean true into 'T', and anything else to 'F'.
|
java.lang.Character |
adaptToCharacter(boolean value)
Adapts a boolean true or false into 'T' or 'F'.
|
java.lang.Character |
adaptToCharacter(java.lang.Boolean value)
Adapts a boolean true into 'T', and anything else to 'F'.
|
java.lang.String |
adaptToString(boolean value)
Adapts a boolean true or false into "T" or "F".
|
java.lang.String |
adaptToString(java.lang.Boolean value)
Adapts a boolean true into "T", and anything else to "F".
|
public TrueFalseAdapter.Adapter(java.lang.Class<?> type, java.lang.String propertyName, TrueFalseAdapter ann)
type
- type of object that contains the adapted propertypropertyName
- name of property with adapterann
- specific annotation that binds to this adapter classpublic TrueFalseAdapter.Adapter(java.lang.Class<?> type, java.lang.String propertyName, boolean lenient)
type
- type of object that contains the adapted propertypropertyName
- name of property withlenient
- lenient when truepublic char adaptToChar(boolean value)
public char adaptToChar(java.lang.Boolean value)
public java.lang.Character adaptToCharacter(boolean value)
public java.lang.Character adaptToCharacter(java.lang.Boolean value)
public java.lang.String adaptToString(boolean value)
public java.lang.String adaptToString(java.lang.Boolean value)
public boolean adaptToBoolean(char value)
lenient
, other characters are accepted as
well.public boolean adaptToBoolean(java.lang.Character value)
lenient
, other characters are accepted as
well.public boolean adaptToBoolean(java.lang.String value)
leneint
, other characters are accepted as
well.public java.lang.Boolean adaptToBooleanObj(char value)
lenient
, other characters are accepted as
well.public java.lang.Boolean adaptToBooleanObj(java.lang.Character value)
lenient
, other characters are accepted as
well.public java.lang.Boolean adaptToBooleanObj(java.lang.String value)
lenient
, other characters are accepted as
well.Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.