Class Striped.Cell<T>

  • Enclosing class:
    Striped<T>

    static final class Striped.Cell<T>
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) T entity  
      (package private) int guard  
      (package private) static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<Striped.Cell> GUARD_UPDATER  
    • Constructor Summary

      Constructors 
      Constructor Description
      Cell​(T value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) boolean process​(java.util.function.Consumer<T> process)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • GUARD_UPDATER

        static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<Striped.Cell> GUARD_UPDATER
      • entity

        final T entity
      • guard

        volatile int guard
    • Constructor Detail

      • Cell

        Cell​(T value)
    • Method Detail

      • process

        final boolean process​(java.util.function.Consumer<T> process)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object