Record Class ConversionResult.ConversionContext
java.lang.Object
java.lang.Record
io.github.kaktushose.proteus.conversion.ConversionResult.ConversionContext
- Record Components:
path
- aList
ofEdge
s describing the full path of the conversionstep
- theEdge
at which the conversion failed
- Enclosing interface:
ConversionResult<T>
public static record ConversionResult.ConversionContext(@NotNull List<Edge> path, @NotNull Edge step)
extends Record
Provides additional information about the conversion that failed.
-
Constructor Summary
ConstructorsConstructorDescriptionConversionContext
(@NotNull List<Edge> path, @NotNull Edge step) Creates an instance of aConversionContext
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.@NotNull Type
<?> from()
Gets the sourceType
of the path.final int
hashCode()
Returns a hash code value for this object.@NotNull Type
<?> into()
Gets the destinationType
of the path.path()
Returns the value of thepath
record component.@NotNull Edge
step()
Returns the value of thestep
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ConversionContext
-
-
Method Details
-
from
-
into
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
path
-
step
-