20 package net.sf.gridarta.model.smoothface;
22 import java.util.Collections;
23 import java.util.Iterator;
25 import java.util.Map.Entry;
26 import java.util.TreeMap;
30 import org.jetbrains.annotations.NotNull;
31 import org.jetbrains.annotations.Nullable;
37 public class SmoothFaces implements Iterable<Entry<String, SmoothFace>> {
43 private final Map<String, SmoothFace>
smoothFaces =
new TreeMap<>();
66 if (oldSmoothFace !=
null) {
67 if (oldSmoothFace.
getValue().equals(smoothFace.getValue())) {
86 if (faceName ==
null) {
87 faceName = gameObject.getArchetype().getFaceName();
89 if (faceName ==
null) {
98 public Iterator<Entry<String, SmoothFace>>
iterator() {
99 return Collections.unmodifiableMap(
smoothFaces).entrySet().iterator();