Class StyleElementList
- java.lang.Object
-
- org.openstreetmap.josm.gui.mappaint.StyleElementList
-
- All Implemented Interfaces:
java.lang.Iterable<StyleElement>
public class StyleElementList extends java.lang.Object implements java.lang.Iterable<StyleElement>
List ofStyleElements, immutable.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<StyleElement>lst
-
Constructor Summary
Constructors Constructor Description StyleElementList()Constructs a newStyleList.StyleElementList(java.util.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 booleanequals(java.lang.Object obj)inthashCode()booleanisEmpty()Check if the list is emptyjava.util.Iterator<StyleElement>iterator()intsize()Get the list sizejava.lang.StringtoString()
-
-
-
Field Detail
-
lst
private final java.util.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(java.util.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 java.util.Iterator<StyleElement> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<StyleElement>
-
isEmpty
public boolean isEmpty()
Check if the list is empty- Returns:
trueif it is empty
-
size
public int size()
Get the list size- Returns:
- The list size
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-