Package org.springframework.boot.origin
Class OriginTrackedValue
java.lang.Object
org.springframework.boot.origin.OriginTrackedValue
- All Implemented Interfaces:
OriginProvider
- Since:
- 2.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return the source origin ornull
if the origin is not known.getValue()
Return the tracked value.int
hashCode()
static OriginTrackedValue
static OriginTrackedValue
toString()
-
Method Details
-
getValue
Return the tracked value.- Returns:
- the tracked value
-
getOrigin
Description copied from interface:OriginProvider
Return the source origin ornull
if the origin is not known.- Specified by:
getOrigin
in interfaceOriginProvider
- Returns:
- the origin or
null
-
equals
-
hashCode
public int hashCode() -
toString
-
of
-
of
Create anOriginTrackedValue
containing the specifiedvalue
andorigin
. If the source value implementsCharSequence
then so will the resultingOriginTrackedValue
.- Parameters:
value
- the source valueorigin
- the origin- Returns:
- an
OriginTrackedValue
ornull
if the source value wasnull
.
-