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 aArchiveTimeSequenceSpecification
record class. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.Range<Long>
Konvertiert diese Klasse in eineRange<Instant>
.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.long
Returns the value of themaximumTime
record component.long
Returns the value of theminimumTime
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ArchiveTimeSequenceSpecification
public ArchiveTimeSequenceSpecification(long minimumTime, long maximumTime) Creates an instance of aArchiveTimeSequenceSpecification
record class.- Parameters:
minimumTime
- the value for theminimumTime
record componentmaximumTime
- the value for themaximumTime
record 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 theminimumTime
record component.- Returns:
- the value of the
minimumTime
record component
-
maximumTime
public long maximumTime()Returns the value of themaximumTime
record component.- Returns:
- the value of the
maximumTime
record component
-