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.
T get()
NoSuchElementException
- if the supply has been exhausted.Copyright © 2002-2015 Atlassian. All Rights Reserved.