U
- type of the update recordV
- type of the default recordpublic final class UpdateMessage<U,V>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
V |
getDefault() |
U |
getUpdate() |
boolean |
hasDefault() |
int |
hashCode() |
static <U,V> UpdateMessage<U,V> |
of(U update) |
static <U,V> UpdateMessage<U,V> |
of(U update,
V defaultValue) |
java.lang.String |
toString() |
public static <U,V> UpdateMessage<U,V> of(U update, @Nullable V defaultValue)
public static <U,V> UpdateMessage<U,V> of(U update)
public U getUpdate()
public V getDefault()
public boolean hasDefault()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object