Brooklyn

brooklyn.util
[Java] Class Suppliers2

java.lang.Object
  brooklyn.util.Suppliers2

public class Suppliers2

Method Summary
static Supplier ofInstance(java.lang.Object instance)

Returns a supplier that always supplies instance.

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Method Detail

ofInstance

public static Supplier ofInstance(@Nullable java.lang.Object instance)
Returns a supplier that always supplies instance. Use this instead of Suppliers#ofInstance(Object)#ofInstance(Object) if you need hashcode/equals on the supplier such that they are equal if the instance being returned is always equal.


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.