Set this instance. Any subsequent calls on #isSet() will return true. @return whether the value changed as a result of this call.
()
| 21 | * @return whether the value changed as a result of this call. |
| 22 | */ |
| 23 | public synchronized boolean set() { |
| 24 | final boolean wasUnset = !isSet; |
| 25 | isSet = true; |
| 26 | return wasUnset; |
| 27 | } |
| 28 | |
| 29 | /** |
| 30 | * Check whether this instance has already been set. If {@link #set()} was |
no outgoing calls
no test coverage detected