@Documented @Retention(value=RUNTIME) @Target(value=METHOD) @AdapterDefinition(storageTypePreferences={char.class,java.lang.Character.class,java.lang.String.class}) public @interface YesNoAdapter
Example:
public interface UserInfo extends Storable { @YesNoAdapter boolean isAdministrator(); void setAdministrator(boolean admin); ... }
TrueFalseAdapter
,
AdapterDefinition
Modifier and Type | Optional Element and Description |
---|---|
boolean |
lenient
Specify that this adapter should be lenient when converting characters
into booleans.
|
public abstract boolean lenient
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.