public final int get(T obj) { if (obj == null || obj.getClass() != tclass || cclass != null) fullCheck(obj); return get(obj, fn); } }
public final int get(T obj) { if (obj == null || obj.getClass() != tclass || cclass != null) fullCheck(obj); return get(obj, fn); } }
public boolean compareAndSet(T obj, int expect, int update) { if (obj == null || obj.getClass() != tclass || cclass != null) fullCheck(obj); int prev = get(obj, fn); if (prev == expect) { set(obj, fn, update); return true; } return false; }
public boolean compareAndSet(T obj, int expect, int update) { if (obj == null || obj.getClass() != tclass || cclass != null) fullCheck(obj); int prev = get(obj, fn); if (prev == expect) { set(obj, fn, update); return true; } return false; }