@Immutable public final class MimeTypeInfo extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MimeTypeInfo.ExtensionWithSource |
static class |
MimeTypeInfo.MimeTypeWithSource |
| Constructor and Description |
|---|
MimeTypeInfo(com.helger.commons.collection.impl.ICommonsOrderedSet<MimeTypeInfo.MimeTypeWithSource> aMimeTypes,
String sComment,
com.helger.commons.collection.impl.ICommonsOrderedSet<String> aParentTypes,
com.helger.commons.collection.impl.ICommonsOrderedSet<String> aGlobs,
com.helger.commons.collection.impl.ICommonsOrderedSet<MimeTypeInfo.ExtensionWithSource> aExtensions,
String sSource) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsExtension(String sExtension) |
boolean |
containsMimeType(com.helger.commons.mime.IMimeType aMimeType) |
boolean |
containsMimeType(String sMimeType) |
boolean |
equals(Object o) |
com.helger.commons.collection.impl.ICommonsOrderedSet<String> |
getAllExtensions() |
com.helger.commons.collection.impl.ICommonsOrderedSet<MimeTypeInfo.ExtensionWithSource> |
getAllExtensionsWithSource() |
com.helger.commons.collection.impl.ICommonsOrderedSet<String> |
getAllGlobs() |
com.helger.commons.collection.impl.ICommonsSet<com.helger.commons.mime.IMimeType> |
getAllMimeTypes() |
com.helger.commons.collection.impl.ICommonsSet<String> |
getAllMimeTypeStrings() |
com.helger.commons.collection.impl.ICommonsSet<MimeTypeInfo.MimeTypeWithSource> |
getAllMimeTypesWithSource() |
com.helger.commons.collection.impl.ICommonsOrderedSet<String> |
getAllParentTypes() |
String |
getComment() |
String |
getPrimaryExtension() |
MimeTypeInfo.ExtensionWithSource |
getPrimaryExtensionWithSource() |
String |
getPrimaryGlob() |
com.helger.commons.mime.IMimeType |
getPrimaryMimeType() |
String |
getPrimaryMimeTypeString() |
MimeTypeInfo.MimeTypeWithSource |
getPrimaryMimeTypeWithSource() |
String |
getSource() |
boolean |
hasAnyExtension() |
boolean |
hasAnyGlob() |
boolean |
hasAnyParentType() |
boolean |
hasComment() |
int |
hashCode() |
boolean |
hasSource() |
String |
toString() |
public MimeTypeInfo(@Nonnull @Nonempty com.helger.commons.collection.impl.ICommonsOrderedSet<MimeTypeInfo.MimeTypeWithSource> aMimeTypes, @Nullable String sComment, @Nonnull com.helger.commons.collection.impl.ICommonsOrderedSet<String> aParentTypes, @Nonnull com.helger.commons.collection.impl.ICommonsOrderedSet<String> aGlobs, @Nonnull com.helger.commons.collection.impl.ICommonsOrderedSet<MimeTypeInfo.ExtensionWithSource> aExtensions, @Nullable String sSource)
@Nonnull @Nonempty @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsSet<MimeTypeInfo.MimeTypeWithSource> getAllMimeTypesWithSource()
@Nonnull @Nonempty @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsSet<com.helger.commons.mime.IMimeType> getAllMimeTypes()
@Nonnull @Nonempty @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsSet<String> getAllMimeTypeStrings()
public boolean containsMimeType(@Nullable com.helger.commons.mime.IMimeType aMimeType)
@Nonnull public MimeTypeInfo.MimeTypeWithSource getPrimaryMimeTypeWithSource()
@Nonnull public com.helger.commons.mime.IMimeType getPrimaryMimeType()
public boolean hasComment()
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsOrderedSet<String> getAllParentTypes()
public boolean hasAnyParentType()
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsOrderedSet<String> getAllGlobs()
public boolean hasAnyGlob()
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsOrderedSet<MimeTypeInfo.ExtensionWithSource> getAllExtensionsWithSource()
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsOrderedSet<String> getAllExtensions()
@Nullable public MimeTypeInfo.ExtensionWithSource getPrimaryExtensionWithSource()
public boolean hasAnyExtension()
public boolean hasSource()
Copyright © 2014–2020 Philip Helger. All rights reserved.