Record Class SequenceEqualConfig<T>
java.lang.Object
java.lang.Record
io.reactivex.rxjava4.core.config.SequenceEqualConfig<T>
- Type Parameters:
T- the element type of the sequences being compared- Record Components:
bufferSize- the expected number of items to cache from the innerObservableSourcesisEqual- the custom lambda to compare two elements
public record SequenceEqualConfig<T>(int bufferSize, @NonNull BiPredicate<? super T, ? super T> isEqual)
extends Record
Configuration record for sequenceEqual() operators.
- Since:
- 4.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SequenceEqualConfig<Object> The default configuration with bufferSize of Observable.bufferSize() and a default Objects.equals predicate. -
Constructor Summary
ConstructorsConstructorDescriptionSequenceEqualConfig(int bufferSize) Constructs a configuration record.SequenceEqualConfig(int bufferSize, @NonNull BiPredicate<? super T, ? super T> isEqual) Constructs a configuration record.SequenceEqualConfig(@NonNull BiPredicate<? super T, ? super T> isEqual) Constructs a configuration record. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebufferSizerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NonNull BiPredicate<? super T, ? super T> isEqual()Returns the value of theisEqualrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT
The default configuration with bufferSize of Observable.bufferSize() and a default Objects.equals predicate.
-
-
Constructor Details
-
SequenceEqualConfig
public SequenceEqualConfig(int bufferSize) Constructs a configuration record.- Parameters:
bufferSize- the expected number of row combination items to be buffered internally
-
SequenceEqualConfig
Constructs a configuration record.- Parameters:
isEqual- the custom lambda to compare two elements
-
SequenceEqualConfig
public SequenceEqualConfig(int bufferSize, @NonNull @NonNull BiPredicate<? super T, ? super T> isEqual) Constructs a configuration record.- Parameters:
bufferSize- the expected number of items to cache from the innerObservableSourcesisEqual- the custom lambda to compare two elements
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
bufferSize
public int bufferSize()Returns the value of thebufferSizerecord component.- Returns:
- the value of the
bufferSizerecord component
-
isEqual
-