public interface ICSSMediaList extends Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsMedium(ECSSMedium eMedium)
Check if the passed medium is explicitly specified
|
boolean |
containsMediumOrAll(ECSSMedium eMedium)
Check if the passed medium or the
ECSSMedium.ALL is explicitly
specified |
Set<ECSSMedium> |
getAllMedia() |
int |
getMediaCount() |
String |
getMediaString() |
String |
getMediaString(String sSeparator) |
boolean |
hasAnyMedia() |
boolean |
hasNoMedia() |
boolean |
hasNoMediaOrAll() |
boolean |
isForScreen()
Check if the passed medium is usable for the screen.
|
@Nonnegative int getMediaCount()
boolean hasAnyMedia()
true if any explicit media is defined,
false if not.boolean hasNoMedia()
true if no explicit media is defined,
false if a media is defined.boolean hasNoMediaOrAll()
true if no explicit media is defined or if
ECSSMedium.ALL is contained.boolean containsMedium(@Nullable ECSSMedium eMedium)
eMedium - The medium to be checked. May be null.true if it is contained, false otherwiseboolean containsMediumOrAll(@Nullable ECSSMedium eMedium)
ECSSMedium.ALL is explicitly
specifiedeMedium - The medium to be checked. May be null.true if the passed medium or the "all" medium is
contained, false otherwiseboolean isForScreen()
true if the media list is usable for screen display@Nonnull @ReturnsMutableCopy Set<ECSSMedium> getAllMedia()
null but maybe empty.@Nonnull String getMediaString()
null but maybe empty String with all media in
the order they where inserted and separated by
getMediaString(String)Copyright © 2014–2016 Philip Helger. All rights reserved.