T
- the type of valuepublic static class HasConstrainedValue extends Object
It is up to the implementation to decide (and document) how to behave when
#setValue(Object)
is called with a value that is not in the
acceptable set. For example, throwing an IllegalArgumentException
, or
quietly adding the value to the acceptable set, are both reasonable choices.
Copyright © 2018. All rights reserved.