public class ConvertedObject<T> extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static <T> ConvertedObject<T> |
fromConverted(T convertedObject) |
static <T> ConvertedObject<T> |
fromNull() |
T |
get() |
int |
hashCode() |
static <T> ConvertedObject<T> |
notConvertable() |
T |
or(T defaultValue) |
T |
orNull() |
String |
toString() |
@Nullable public T get() throws ObjectNotConvertableException
null
.ObjectNotConvertableException
- If the object is not convertable.public T orNull()
null
if the object is not convertable.public T or(T defaultValue)
public static <T> ConvertedObject<T> fromConverted(@Nullable T convertedObject)
public static <T> ConvertedObject<T> fromNull()
public static <T> ConvertedObject<T> notConvertable()
@Generated(value="lombok") public boolean equals(Object o)
@Generated(value="lombok") public int hashCode()
@Generated(value="lombok") public String toString()
Copyright © 2017 SAP SE. All rights reserved.