StyleSource
public 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 StyleSource
group
- the groupname
- the style namepublic void set(String group, String name, String style)
set
in interface StyleSource
group
- the groupname
- the style namestyle
- the style to setpublic void remove(String group)
remove
in interface StyleSource
group
- the grouppublic void remove(String group, String name)
remove
in interface StyleSource
group
- the groupname
- the style name to removepublic void clear()
clear
in interface StyleSource
public Iterable<String> groups()
groups
in interface StyleSource
Copyright © 2020. All rights reserved.