publicclass Lazy { volatileint ii; volatilelong ll; volatileBoolean bb; staticfinal Lazy z = new Lazy();
publicstaticvoid main(String[] args) throws Exception { final AtomicBoolean b = new AtomicBoolean(); final AtomicInteger i = new AtomicInteger(); final AtomicLong l = new AtomicLong(); final AtomicReference<Long> r = new AtomicReference<>();
final AtomicIntegerArray ia = new AtomicIntegerArray(1); final AtomicLongArray la = new AtomicLongArray(1); final AtomicReferenceArray<Long> ra = new AtomicReferenceArray<>(1);
final AtomicIntegerFieldUpdater<Lazy> iu =
AtomicIntegerFieldUpdater.newUpdater(Lazy.class, "ii"); final AtomicLongFieldUpdater<Lazy> lu =
AtomicLongFieldUpdater.newUpdater(Lazy.class, "ll"); final AtomicReferenceFieldUpdater<Lazy,Boolean> ru =
AtomicReferenceFieldUpdater.newUpdater(Lazy.class, Boolean.class, "bb");
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.