Record Class ArchiveTimeSequenceSpecification
java.lang.Object
java.lang.Record
de.bsvrz.ars.ars.persistence.sequence.ArchiveTimeSequenceSpecification
- Record Components:
minimumTime- Minimum-ArchivzeitmaximumTime- Maximum-Archivzeit
- All Implemented Interfaces:
SequenceSpecification
public record ArchiveTimeSequenceSpecification(long minimumTime, long maximumTime)
extends Record
implements SequenceSpecification
Spezifikation für einen Protokollauszug nach Archivzeit
-
Constructor Summary
ConstructorsConstructorDescriptionArchiveTimeSequenceSpecification(long minimumTime, long maximumTime) Creates an instance of aArchiveTimeSequenceSpecificationrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.Range<Long>Konvertiert diese Klasse in eineRange<Instant>.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of themaximumTimerecord component.longReturns the value of theminimumTimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ArchiveTimeSequenceSpecification
public ArchiveTimeSequenceSpecification(long minimumTime, long maximumTime) Creates an instance of aArchiveTimeSequenceSpecificationrecord class.- Parameters:
minimumTime- the value for theminimumTimerecord componentmaximumTime- the value for themaximumTimerecord component
-
-
Method Details
-
asMillisRange
Konvertiert diese Klasse in eineRange<Instant>.- Returns:
- Zeitbereich, den diese Klasse darstellt
-
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 with '=='. -
minimumTime
public long minimumTime()Returns the value of theminimumTimerecord component.- Returns:
- the value of the
minimumTimerecord component
-
maximumTime
public long maximumTime()Returns the value of themaximumTimerecord component.- Returns:
- the value of the
maximumTimerecord component
-