public final class Unit extends Object implements Serializable
Try
or Future
that are not meant
to hold a value.
Try<Unit> deleteSynchronous(String id)
Future<Unit> deleteAsynchronous(String id)
The example illustrates deleting something but the only thing we care of is if the operation was successful.singleton
instance.Modifier and Type | Field and Description |
---|---|
static Unit |
Instance
Static singleton representing the Unit.
|
Constructor and Description |
---|
Unit() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Simply compares the provided object to see if it is an instance of
Unit . |
int |
hashCode()
Always returns 69.
|
String |
toString()
Always returns the string Unit
|
Copyright © 2016, Peter Nerg Apache License v2.0