StyleSourcepublic class NopStyleSource extends Object implements StyleSource
StyleSource which always returns null.| Constructor | Description |
|---|---|
NopStyleSource() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
clear() |
Non-operation.
|
String |
get(String group,
String name) |
Always returns
null. |
Iterable<String> |
groups() |
Always returns empty list.
|
void |
remove(String group) |
Non-operation.
|
void |
remove(String group,
String name) |
Non-operation.
|
void |
set(String group,
String name,
String style) |
Non-operation.
|
Map<String,String> |
styles(String group) |
Always returns empty map.
|
@Nullable public String get(String group, String name)
null.get in interface StyleSourcegroup - the groupname - the style namepublic void set(String group, String name, String style)
set in interface StyleSourcegroup - the groupname - the style namestyle - the style to setpublic void remove(String group)
remove in interface StyleSourcegroup - the grouppublic void remove(String group, String name)
remove in interface StyleSourcegroup - the groupname - the style name to removepublic void clear()
clear in interface StyleSourcepublic Iterable<String> groups()
groups in interface StyleSourceCopyright © 2020. All rights reserved.