public final class Empty extends Object
Used mostly by MetadataKeys, where the presence of the key in the map
is enough for a behaviour to apply. In other words, the value is not significant.
Very similar to Void, except this class also provides an instance of the "empty" object.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static Empty |
instance() |
static Supplier<Empty> |
supplier() |
String |
toString() |
Copyright © 2020. All rights reserved.