Package com.io7m.cardant.model
Record Class CAAuditSearchParameters
java.lang.Object
java.lang.Record
com.io7m.cardant.model.CAAuditSearchParameters
- Record Components:
owner- Limit events to the given ownertype- Limit events to the given typetimeRange- Limit events to the given time rangepageSize- The page size
- All Implemented Interfaces:
CASearchParametersType
public record CAAuditSearchParameters(Optional<CAUserID> owner, CAComparisonExactType<String> type, CATimeRange timeRange, long pageSize)
extends Record
implements CASearchParametersType
The search parameters for the audit log.
-
Constructor Summary
ConstructorsConstructorDescriptionCAAuditSearchParameters(Optional<CAUserID> owner, CAComparisonExactType<String> type, CATimeRange timeRange, long pageSize) The search parameters for the audit log. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.owner()Returns the value of theownerrecord component.longpageSize()Returns the value of thepageSizerecord component.Returns the value of thetimeRangerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
CAAuditSearchParameters
public CAAuditSearchParameters(Optional<CAUserID> owner, CAComparisonExactType<String> type, CATimeRange timeRange, long pageSize) The search parameters for the audit log.- Parameters:
owner- Limit events to the given ownertype- Limit events to the given typetimeRange- Limit events to the given time rangepageSize- The page size
-
-
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 '=='. -
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
timeRange
Returns the value of thetimeRangerecord component.- Returns:
- the value of the
timeRangerecord component
-
pageSize
public long pageSize()Returns the value of thepageSizerecord component.- Specified by:
pageSizein interfaceCASearchParametersType- Returns:
- the value of the
pageSizerecord component
-