Record Class ConversionResult.ConversionContext
java.lang.Object
java.lang.Record
io.github.kaktushose.proteus.conversion.ConversionResult.ConversionContext
- Record Components:
path- aListofEdges describing the full path of the conversionstep- theEdgeat 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 aConversionContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NotNull Type<?> from()Gets the sourceTypeof the path.final inthashCode()Returns a hash code value for this object.@NotNull Type<?> into()Gets the destinationTypeof the path.path()Returns the value of thepathrecord component.@NotNull Edgestep()Returns the value of thesteprecord component.final StringtoString()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
-