Package com.mimecast.robin.scanners.rbl
Record Class RblChecker.CachedResult
java.lang.Object
java.lang.Record
com.mimecast.robin.scanners.rbl.RblChecker.CachedResult
- Enclosing class:
RblChecker
private static record RblChecker.CachedResult(List<RblResult> results, long expiresAtMillis)
extends Record
Cached RBL results with expiry.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longThe field for theexpiresAtMillisrecord component.The field for theresultsrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCachedResult(List<RblResult> results, long expiresAtMillis) Creates an instance of aCachedResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexpiresAtMillisrecord component.final inthashCode()Returns a hash code value for this object.results()Returns the value of theresultsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
results
The field for theresultsrecord component. -
expiresAtMillis
private final long expiresAtMillisThe field for theexpiresAtMillisrecord component.
-
-
Constructor Details
-
CachedResult
Creates an instance of aCachedResultrecord class.- Parameters:
results- the value for theresultsrecord componentexpiresAtMillis- the value for theexpiresAtMillisrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
results
Returns the value of theresultsrecord component.- Returns:
- the value of the
resultsrecord component
-
expiresAtMillis
public long expiresAtMillis()Returns the value of theexpiresAtMillisrecord component.- Returns:
- the value of the
expiresAtMillisrecord component
-