Class MimeTypedString<M extends MimeType>

java.lang.Object
dev.hydraulic.types.mimetyped.MimeTypedString<M>
Type Parameters:
M - A marker type that isn't represented or stored at runtime. It exists only for source documentation, type inference, reflection and languages that have extension functions. So, feel free to use a wildcard type here, you won't lose anything except some type safety.
All Implemented Interfaces:
MimeTyped<String,M>, Serializable, CharSequence, Comparable<MimeTypedString<M>>

public final class MimeTypedString<M extends MimeType> extends Object implements CharSequence, Serializable, Comparable<MimeTypedString<M>>, MimeTyped<String,M>
A value-based type that combines a string with an associated MIME type. The class implements CharSequence by delegation, thus can be treated as if it were the underlying string in some cases. Two instances are compared using MIME_TYPE_THEN_CONTENT.
See Also: