org.xwiki.gwt.wysiwyg.client.plugin.font
Class FontSizeComparator
java.lang.Object
org.xwiki.gwt.wysiwyg.client.plugin.font.DefaultStringMatcher
org.xwiki.gwt.wysiwyg.client.plugin.font.AbstractFontMatcher
org.xwiki.gwt.wysiwyg.client.plugin.font.FontSizeComparator
- All Implemented Interfaces:
- Comparator<String>, Matcher<String>
public class FontSizeComparator
- extends AbstractFontMatcher
- implements Comparator<String>
Compares two font sizes. This is not trivial as it may seem because font-size CSS property can take different kind of
values.
- Version:
- $Id: b148c7c899ef73e442498f4f51575b1e1a694972 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FontSizeComparator
public FontSizeComparator()
- Creates a new font size comparator.
compare
public int compare(String leftValue,
String rightValue)
-
- Specified by:
compare in interface Comparator<String>
- See Also:
Comparator.compare(Object, Object)
match
public boolean match(String leftValue,
String rightValue)
-
- Specified by:
match in interface Matcher<String>- Overrides:
match in class DefaultStringMatcher
- Parameters:
leftValue - the left valuerightValue - the right value
- Returns:
true if the left and right values match, false otherwise- See Also:
Matcher.match(Object, Object)
Copyright © 2004–2014 XWiki. All rights reserved.