Class AbstractAtomicFieldUpdaterAssert<SELF extends AbstractAtomicFieldUpdaterAssert<SELF,​VALUE,​ATOMIC,​OBJECT>,​VALUE,​ATOMIC,​OBJECT>

  • Type Parameters:
    SELF - the "self" type of this assertion class.
    VALUE - the type of the "actual" value.
    ATOMIC - the type of the "actual" atomic.
    OBJECT - the type of the object holding the updatable field.
    All Implemented Interfaces:
    Assert<SELF,​ATOMIC>, Descriptable<SELF>, ExtensionPoints<SELF,​ATOMIC>
    Direct Known Subclasses:
    AtomicIntegerFieldUpdaterAssert, AtomicLongFieldUpdaterAssert, AtomicReferenceFieldUpdaterAssert

    public abstract class AbstractAtomicFieldUpdaterAssert<SELF extends AbstractAtomicFieldUpdaterAssert<SELF,​VALUE,​ATOMIC,​OBJECT>,​VALUE,​ATOMIC,​OBJECT>
    extends AbstractObjectAssert<SELF,​ATOMIC>
    Base class for all fieldupdater assertions.
    Since:
    2.7.0 / 3.7.0
    Author:
    epeee
    • Field Detail

      • expectedNullAllowed

        private final boolean expectedNullAllowed
    • Constructor Detail

      • AbstractAtomicFieldUpdaterAssert

        public AbstractAtomicFieldUpdaterAssert​(ATOMIC actual,
                                                Class<?> selfType,
                                                boolean expectedNullAllowed)
    • Method Detail

      • getActualValue

        protected abstract VALUE getActualValue​(OBJECT obj)
      • validate

        protected void validate​(VALUE expectedValue)
      • checkNotNull

        private void checkNotNull​(VALUE expectedValue)