ezvcard.parameter
Class MediaTypeCaseClasses<T extends MediaTypeParameter>
java.lang.Object
ezvcard.util.CaseClasses<T,String[]>
ezvcard.parameter.MediaTypeCaseClasses<T>
- Type Parameters:
T
- the parameter class
public class MediaTypeCaseClasses<T extends MediaTypeParameter>
- extends CaseClasses<T,String[]>
Manages the list of pre-defined values for a media type parameter.
- 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 |
MediaTypeCaseClasses
public MediaTypeCaseClasses(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 MediaTypeParameter,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 MediaTypeParameter,String[]>
- Parameters:
object
- the objectvalue
- the value
- Returns:
- true if it matches, false if not
Copyright © 2012-2014 Michael Angstadt. All Rights Reserved.