Class AbstractLock

  • All Implemented Interfaces:
    ILock
    Direct Known Subclasses:
    NullLock

    public abstract class AbstractLock
    extends java.lang.Object
    implements ILock
    Abstract ILock implementation.
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractLock​(java.lang.Object object)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Object getObject()
      The object that is guarded by this lock.
      java.lang.String toString()  
      protected void toStringFlags​(java.lang.StringBuilder sb)
      provide some detail information for this
      • Methods inherited from class java.lang.Object

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

      • AbstractLock

        public AbstractLock​(java.lang.Object object)
    • Method Detail

      • getObject

        protected java.lang.Object getObject()
        The object that is guarded by this lock.
        Returns:
        The object that is locked.
      • toString

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

        protected void toStringFlags​(java.lang.StringBuilder sb)
        provide some detail information for this
        Parameters:
        sb -