# Class LockingVisitors.ReadWriteLockVisitor.Builder<O>

java.lang.Object
org.apache.commons.lang3.builder.AbstractSupplier<LockingVisitors.LockVisitor<O, ReadWriteLock>, LockingVisitors.ReadWriteLockVisitor.Builder<O>, RuntimeException>
org.apache.commons.lang3.concurrent.locks.LockingVisitors.LockVisitor.LVBuilder<O, ReadWriteLock, LockingVisitors.ReadWriteLockVisitor.Builder<O>>
org.apache.commons.lang3.concurrent.locks.LockingVisitors.ReadWriteLockVisitor.Builder<O>

Type Parameters:
  `O` - the wrapped object type.

All Implemented Interfaces:
  `FailableSupplier<LockingVisitors.LockVisitor<O, ReadWriteLock>, RuntimeException>`

Enclosing class:
  `LockingVisitors.ReadWriteLockVisitor<O>`

public static class LockingVisitors.ReadWriteLockVisitor.Builder<O> extends LockingVisitors.LockVisitor.LVBuilder<O, ReadWriteLock, LockingVisitors.ReadWriteLockVisitor.Builder<O>>
Builds `LockingVisitors.LockVisitor` instances.

Since:
  3.18.0

- ## Field Summary

  ### Fields inherited from interface FailableSupplier

  `NUL`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Builder()`
  Constructs a new instance.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `LockingVisitors.ReadWriteLockVisitor<O>`
  `get()`
  Supplies an object
  `LockingVisitors.ReadWriteLockVisitor.Builder<O>`
  `setLock(ReadWriteLock readWriteLock)`
  Set the lock used from accept methods.

  ### Methods inherited from class LockingVisitors.LockVisitor.LVBuilder

  `setObject, setReadLockSupplier, setWriteLockSupplier`

  ### Methods inherited from class AbstractSupplier

  `asThis`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Builder

    public Builder()
    Constructs a new instance.

- ## Method Details

  - ### get

    public LockingVisitors.ReadWriteLockVisitor<O> get()
    Description copied from interface: `FailableSupplier`
    Supplies an object
    Specified by:
      `get` in interface `FailableSupplier<LockingVisitors.LockVisitor<O, ReadWriteLock>, RuntimeException>`
    Overrides:
      `get` in class `LockingVisitors.LockVisitor.LVBuilder<O, ReadWriteLock, LockingVisitors.ReadWriteLockVisitor.Builder<O>>`
    Returns:
      a result

  - ### setLock

    public LockingVisitors.ReadWriteLockVisitor.Builder<O> setLock(ReadWriteLock readWriteLock)
    Description copied from class: `LockingVisitors.LockVisitor.LVBuilder`
    Set the lock used from accept methods.
    Overrides:
      `setLock` in class `LockingVisitors.LockVisitor.LVBuilder<O, ReadWriteLock, LockingVisitors.ReadWriteLockVisitor.Builder<O>>`
    Parameters:
      `readWriteLock` - the lock.
    Returns:
      `this` instance.