T
- the type of object supplied.public interface Supplier<T>
NoSuchElementException
.
Thread safety of a Supplier is not mandated by this interface, although serious care and consideration should be taken with any implementations that are not.
for a similar interface.
Modifier and Type | Method and Description |
---|---|
T |
get()
Produce an object.
|
T get()
NoSuchElementException
- if the supply has been exhausted.Copyright © 2002-2020 Atlassian. All Rights Reserved.