public class MediaTypeParameter extends VCardParameter
Modifier and Type | Field and Description |
---|---|
protected String |
extension |
protected String |
mediaType |
value
Constructor and Description |
---|
MediaTypeParameter(String value,
String mediaType,
String extension) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getExtension()
Gets the file extension.
|
String |
getMediaType()
Gets the media type.
|
int |
hashCode() |
getSupportedVersions, getValue, isSupportedBy, toString
public MediaTypeParameter(String value, String mediaType, String extension)
value
- the TYPE parameter value (e.g. "JPEG")mediaType
- the media type (e.g. "image/jpeg")extension
- the file extension (e.g. "jpg")public String getMediaType()
public String getExtension()
public int hashCode()
hashCode
in class VCardParameter
public boolean equals(Object obj)
equals
in class VCardParameter
Copyright © 2012–2023 Michael Angstadt. All rights reserved.