public class OriginTrackedValue extends Object implements OriginProvider
of(Object)
,
of(Object, Origin)
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Origin |
getOrigin()
Return the source origin or
null if the origin is not known. |
Object |
getValue()
Return the tracked value.
|
int |
hashCode() |
static OriginTrackedValue |
of(Object value) |
static OriginTrackedValue |
of(Object value,
Origin origin)
|
String |
toString() |
public Object getValue()
public Origin getOrigin()
OriginProvider
null
if the origin is not known.getOrigin
in interface OriginProvider
null
public static OriginTrackedValue of(Object value)
public static OriginTrackedValue of(Object value, Origin origin)
OriginTrackedValue
containing the specified value
and
origin
. If the source value implements CharSequence
then so will
the resulting OriginTrackedValue
.value
- the source valueorigin
- the originOriginTrackedValue
or null
if the source value was
null
.Copyright © 2021 Pivotal Software, Inc.. All rights reserved.