this.identity = getClass();
}
+ @SuppressWarnings("unchecked")
protected <T> T getIdentity() {
return (T)identity;
}
return false;
if (getClass() != obj.getClass())
return false;
- StyleBase other = (StyleBase) obj;
+ StyleBase<?> other = (StyleBase<?>) obj;
if (identity == null) {
if (other.identity != null)
return false;
import org.simantics.scl.runtime.tuple.Tuple;
import org.simantics.scl.runtime.tuple.Tuple3;
+/**
+ * @author Antti Villberg
+ * @since 1.36.0
+ */
public class StyleBaseData {
private static StyleBaseData INSTANCE;
values.put(t, o);
}
+ @SuppressWarnings("unchecked")
public <T> T getValue(Tuple t) {
return (T) values.get(t);
}
return listeners.get(key);
}
- public synchronized void applyRemovals(EvaluationContext evaluationContext, StyleBase s) {
+ public synchronized void applyRemovals(EvaluationContext evaluationContext, StyleBase<?> s) {
List<Resource> rs = removals.remove(s);
if (rs == null)
return;