use of com.gargoylesoftware.css.parser.media.MediaQuery in project LoboEvolution by LoboEvolution.
the class MediaListImpl method getMediaText.
/**
* <p>getMediaText.</p>
*
* @return the media text
*/
public String getMediaText() {
final StringBuilder sb = new StringBuilder();
boolean isNotFirst = false;
for (final MediaQuery mediaQuery : mediaQueries_) {
if (isNotFirst) {
sb.append(", ");
} else {
isNotFirst = true;
}
sb.append(mediaQuery.toString());
}
return sb.toString();
}
use of com.gargoylesoftware.css.parser.media.MediaQuery in project LoboEvolution by LoboEvolution.
the class MediaListImpl method equalsMedia.
private boolean equalsMedia(final MediaListImpl ml) {
if ((ml == null) || (getLength() != ml.getLength())) {
return false;
}
int i = 0;
for (final MediaQuery mediaQuery : mediaQueries_) {
final String m1 = mediaQuery.getMedia();
final String m2 = ml.mediaQuery(i).getMedia();
if (!LangUtils.equals(m1, m2)) {
return false;
}
i++;
}
return true;
}
Aggregations