Package dev.ioliver.dtos
Record Class Card
java.lang.Object
java.lang.Record
dev.ioliver.dtos.Card
public record Card(CardDimensions dimensions, CardContour contour, org.opencv.core.Mat cardImage, CardPredict predict)
extends Record
-
Constructor Summary
ConstructorDescriptionCard
(CardDimensions dimensions, CardContour contour, org.opencv.core.Mat cardImage, CardPredict predict) Creates an instance of aCard
record class. -
Method Summary
Modifier and TypeMethodDescriptionorg.opencv.core.Mat
Returns the value of thecardImage
record component.contour()
Returns the value of thecontour
record component.Returns the value of thedimensions
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.predict()
Returns the value of thepredict
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Card
public Card(CardDimensions dimensions, CardContour contour, org.opencv.core.Mat cardImage, CardPredict predict) Creates an instance of aCard
record class.- Parameters:
dimensions
- the value for thedimensions
record componentcontour
- the value for thecontour
record componentcardImage
- the value for thecardImage
record componentpredict
- the value for thepredict
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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)
. -
dimensions
Returns the value of thedimensions
record component.- Returns:
- the value of the
dimensions
record component
-
contour
Returns the value of thecontour
record component.- Returns:
- the value of the
contour
record component
-
cardImage
public org.opencv.core.Mat cardImage()Returns the value of thecardImage
record component.- Returns:
- the value of the
cardImage
record component
-
predict
Returns the value of thepredict
record component.- Returns:
- the value of the
predict
record component
-