public class MediaQueryImpl extends AbstractRule<MediaExpression> implements MediaQuery
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
negative |
protected String |
type |
hash, listmodCount| Constructor and Description |
|---|
MediaQueryImpl() |
MediaQueryImpl(String type,
boolean negative) |
| Modifier and Type | Method and Description |
|---|---|
String |
getType()
Obtains the declared media type.
|
boolean |
isNegative()
Checks whether the query starts with NOT
|
void |
setNegative(boolean negative)
Sets the negative flag (i.e. the media query starts with NOT)
|
void |
setType(String type)
Sets the media type.
|
String |
toString() |
add, add, asList, equals, get, hashCode, iterator, remove, replaceAll, set, size, unlockaddAll, clear, indexOf, lastIndexOf, listIterator, listIterator, removeRange, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitasList, replaceAll, unlockadd, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArrayparallelStream, removeIf, streamprotected boolean negative
protected String type
public MediaQueryImpl()
public MediaQueryImpl(String type, boolean negative)
public boolean isNegative()
MediaQueryisNegative in interface MediaQuerypublic void setNegative(boolean negative)
MediaQuerysetNegative in interface MediaQuerypublic String getType()
MediaQuerygetType in interface MediaQuerynull when no type is declaredpublic void setType(String type)
MediaQuerysetType in interface MediaQuerypublic String toString()
toString in class AbstractCollection<MediaExpression>Copyright © 2019. All rights reserved.