Class StyleElementList
- java.lang.Object
-
- org.openstreetmap.josm.gui.mappaint.StyleElementList
-
- All Implemented Interfaces:
Iterable<StyleElement>
public class StyleElementList extends Object implements Iterable<StyleElement>
List ofStyleElement
s, immutable.
-
-
Field Summary
Fields Modifier and Type Field Description private List<StyleElement>
lst
-
Constructor Summary
Constructors Constructor Description StyleElementList()
Constructs a newStyleList
.StyleElementList(Collection<StyleElement> sl)
Create a new List of style elementsStyleElementList(StyleElement... init)
Create a new List of style elementsStyleElementList(StyleElementList sl, StyleElement s)
Create a new List of style elements
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
boolean
isEmpty()
Check if the list is emptyIterator<StyleElement>
iterator()
int
size()
Get the list sizeString
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
lst
private final List<StyleElement> lst
-
-
Constructor Detail
-
StyleElementList
public StyleElementList()
Constructs a newStyleList
.
-
StyleElementList
public StyleElementList(StyleElement... init)
Create a new List of style elements- Parameters:
init
- The list
-
StyleElementList
public StyleElementList(Collection<StyleElement> sl)
Create a new List of style elements- Parameters:
sl
- The list
-
StyleElementList
public StyleElementList(StyleElementList sl, StyleElement s)
Create a new List of style elements- Parameters:
sl
- The lists
- An item to merge to the list
-
-
Method Detail
-
iterator
public Iterator<StyleElement> iterator()
- Specified by:
iterator
in interfaceIterable<StyleElement>
-
isEmpty
public boolean isEmpty()
Check if the list is empty- Returns:
true
if it is empty
-
size
public int size()
Get the list size- Returns:
- The list size
-
-