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
ConstructorsConstructorDescriptionCard(CardDimensions dimensions, CardContour contour, org.opencv.core.Mat cardImage, CardPredict predict) Creates an instance of aCardrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.opencv.core.MatReturns the value of thecardImagerecord component.contour()Returns the value of thecontourrecord component.Returns the value of thedimensionsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.predict()Returns the value of thepredictrecord component.final StringtoString()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 aCardrecord class.- Parameters:
dimensions- the value for thedimensionsrecord componentcontour- the value for thecontourrecord componentcardImage- the value for thecardImagerecord componentpredict- the value for thepredictrecord 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 thedimensionsrecord component.- Returns:
- the value of the
dimensionsrecord component
-
contour
Returns the value of thecontourrecord component.- Returns:
- the value of the
contourrecord component
-
cardImage
public org.opencv.core.Mat cardImage()Returns the value of thecardImagerecord component.- Returns:
- the value of the
cardImagerecord component
-
predict
Returns the value of thepredictrecord component.- Returns:
- the value of the
predictrecord component
-