ezvcard.parameter
Class VCardParameterCaseClasses<T extends VCardParameter>
java.lang.Object
ezvcard.util.CaseClasses<T,String>
ezvcard.parameter.VCardParameterCaseClasses<T>
- Type Parameters:
T
- the parameter class
public class VCardParameterCaseClasses<T extends VCardParameter>
- extends CaseClasses<T,String>
Manages the list of pre-defined values for a parameter that consists of a
single String value.
- Author:
- Michael Angstadt
Method Summary |
protected T |
create(String value)
Creates a new instance of the case class. |
protected boolean |
matches(T object,
String value)
Determines if a value is associated with a case object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VCardParameterCaseClasses
public VCardParameterCaseClasses(Class<T> clazz)
create
protected T create(String value)
- Description copied from class:
CaseClasses
- Creates a new instance of the case class.
- Specified by:
create
in class CaseClasses<T extends VCardParameter,String>
- Parameters:
value
- the value to give the instance
- Returns:
- the new instance
matches
protected boolean matches(T object,
String value)
- Description copied from class:
CaseClasses
- Determines if a value is associated with a case object.
- Specified by:
matches
in class CaseClasses<T extends VCardParameter,String>
- Parameters:
object
- the objectvalue
- the value
- Returns:
- true if it matches, false if not
Copyright © 2012-2014 Michael Angstadt. All Rights Reserved.