Code example for BooleanTypeDescriptor

0
		implements PrimitiveType<Boolean>, DiscriminatorType<Boolean> { 
 
	public static final TrueFalseType INSTANCE = new TrueFalseType(); 
 
	public TrueFalseType() { 
		super( CharTypeDescriptor.INSTANCE, new BooleanTypeDescriptor( 'T', 'F' ) ); 
	} 
 
	public String getName() { 
		return "true_false"; 
	} 
 
	public Class getPrimitiveClass() { 
		return boolean.class; 
	} 
 
	public Boolean stringToObject(String xml) throws Exception { 
		return fromString( xml ); 
	} 
 
Experience pair programming with AI  Get Codota for Java