java.lang.Object
java.lang.Record
xyz.cofe.coll.im.FMap.Split<A,B>
- Type Parameters:
A- элементы первой коллекцииB- элементы второй коллекции- Record Components:
left- первая коллекцияright- вторая коллекция
Отображение коллекции на две
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.<C,D> FMap.Split<C, D> fmap(Function<A, PositionalRead<C>> leftMapper, Function<B, PositionalRead<D>> rightMapper) <R> Rfinal inthashCode()Returns a hash code value for this object.left()Returns the value of theleftrecord component.<C> FMap.Split<C,B> <C> FMap.Split<C,B> leftFmap(Function<A, PositionalRead<C>> leftMapper) FMap.Split<A,B> merge(FMap.Split<? extends A, ? extends B> split) Объединение списковFMap.Split<A,B> reverse()Разворот списковright()Returns the value of therightrecord component.<D> FMap.Split<A,D> <D> FMap.Split<A,D> rightFmap(Function<B, PositionalRead<D>> rightMapper) static <A,B> FMap.Split<A, B> split(A a, B b) static <A,B> FMap.Split<A, B> splitLeft(A a) static <A,B> FMap.Split<A, B> splitRight(B b) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
splitLeft
-
splitRight
-
split
-
merge
Объединение списков- Parameters:
split- объединяемый список- Returns:
- объеденные списки
-
reverse
Разворот списков- Returns:
- списки
-
fmap
public <C,D> FMap.Split<C,D> fmap(Function<A, PositionalRead<C>> leftMapper, Function<B, PositionalRead<D>> rightMapper) -
rightFmap
-
rightFmap
-
leftFmap
-
leftFmap
-
fold
-
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 withObjects::equals(Object,Object). -
left
Returns the value of theleftrecord component.- Returns:
- the value of the
leftrecord component
-
right
Returns the value of therightrecord component.- Returns:
- the value of the
rightrecord component
-