Package org.pac4j.core.profile.converter
Class BooleanConverter
- java.lang.Object
-
- org.pac4j.core.profile.converter.AbstractAttributeConverter<Boolean>
-
- org.pac4j.core.profile.converter.BooleanConverter
-
- All Implemented Interfaces:
AttributeConverter<Boolean>
public final class BooleanConverter extends AbstractAttributeConverter<Boolean>
This class converts a String into a Boolean or returns the Boolean in input.- Since:
- 1.1.0
- Author:
- Jerome Leleu
-
-
Constructor Summary
Constructors Constructor Description BooleanConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Boolean
defaultValue()
protected Boolean
internalConvert(Object attribute)
-
Methods inherited from class org.pac4j.core.profile.converter.AbstractAttributeConverter
accept, convert
-
-
-
-
Method Detail
-
internalConvert
protected Boolean internalConvert(Object attribute)
- Overrides:
internalConvert
in classAbstractAttributeConverter<Boolean>
-
defaultValue
protected Boolean defaultValue()
- Overrides:
defaultValue
in classAbstractAttributeConverter<Boolean>
-
-