Package me.croabeast.common.builder
Interface BiBuilder<T,U,B extends BiBuilder<T,U,B>>
- Type Parameters:
T- the type of the first valueU- the type of the second valueB- the specific builder type extending this interface
- All Superinterfaces:
BaseBuilder<B>
Represents a builder that holds two values and supports modification operations.
-
Method Summary
Methods inherited from interface me.croabeast.common.builder.BaseBuilder
instance
-
Method Details
-
getFirst
T getFirst()Retrieves the first stored value.- Returns:
- the first value
-
getSecond
U getSecond()Retrieves the second stored value.- Returns:
- the second value
-
modify
Modifies both stored values using the provided bi-consumer function.- Parameters:
consumer- the function to modify the values- Returns:
- the builder instance for fluent method calls
- Throws:
NullPointerException- if the consumer is null
-