gitlab #96
Change-Id: Id2d7791ff5e471727f5b11ca7430c32c2bee415c
this.identity = getClass();
}
this.identity = getClass();
}
+ @SuppressWarnings("unchecked")
protected <T> T getIdentity() {
return (T)identity;
}
protected <T> T getIdentity() {
return (T)identity;
}
return false;
if (getClass() != obj.getClass())
return false;
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;
if (identity == null) {
if (other.identity != null)
return false;
import org.simantics.scl.runtime.tuple.Tuple;
import org.simantics.scl.runtime.tuple.Tuple3;
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;
public class StyleBaseData {
private static StyleBaseData INSTANCE;
+ @SuppressWarnings("unchecked")
public <T> T getValue(Tuple t) {
return (T) values.get(t);
}
public <T> T getValue(Tuple t) {
return (T) values.get(t);
}
return listeners.get(key);
}
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;
List<Resource> rs = removals.remove(s);
if (rs == null)
return;