Changeset 9278 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/StyleCache.java
- Timestamp:
- 2016-01-03T15:50:53+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/StyleCache.java
r9239 r9278 10 10 11 11 import org.openstreetmap.josm.data.osm.Storage; 12 import org.openstreetmap.josm.gui.mappaint.styleelement.StyleElement; 12 13 import org.openstreetmap.josm.tools.Pair; 13 14 … … 16 17 * Splits the range of possible scale values (0 < scale < +Infinity) into multiple 17 18 * subranges, for each scale range it keeps a list of styles. 18 * Immutable class, equals & hashCode is required (the same for StyleList, ElemStyle19 *and its subclasses).19 * Immutable class, equals & hashCode is required (the same for StyleList, StyleElement 20 and its subclasses). 20 21 */ 21 22 public final class StyleCache { … … 46 47 * List of Styles, immutable 47 48 */ 48 public static class StyleList implements Iterable< ElemStyle> {49 private final List< ElemStyle> lst;49 public static class StyleList implements Iterable<StyleElement> { 50 private final List<StyleElement> lst; 50 51 51 52 /** … … 56 57 } 57 58 58 public StyleList( ElemStyle... init) {59 public StyleList(StyleElement... init) { 59 60 lst = new ArrayList<>(Arrays.asList(init)); 60 61 } 61 62 62 public StyleList(Collection< ElemStyle> sl) {63 public StyleList(Collection<StyleElement> sl) { 63 64 lst = new ArrayList<>(sl); 64 65 } 65 66 66 public StyleList(StyleList sl, ElemStyles) {67 public StyleList(StyleList sl, StyleElement s) { 67 68 lst = new ArrayList<>(sl.lst); 68 69 lst.add(s); … … 70 71 71 72 @Override 72 public Iterator< ElemStyle> iterator() {73 public Iterator<StyleElement> iterator() { 73 74 return lst.iterator(); 74 75 }
Note:
See TracChangeset
for help on using the changeset viewer.