| Package | Description |
|---|---|
| com.opengamma.strata.collect |
Root package for common data structures used by Strata.
|
| com.opengamma.strata.collect.timeseries |
Time-series data structures.
|
| com.opengamma.strata.collect.tuple |
Tuple data structures.
|
| Modifier and Type | Method and Description |
|---|---|
static Pair<String,Map<String,String>> |
Messages.formatWithAttributes(String messageTemplate,
Object... args)
Formats a templated message inserting named arguments.
|
| Modifier and Type | Method and Description |
|---|---|
static <K,V> Collector<Pair<? extends K,? extends V>,?,ImmutableMap<K,V>> |
Guavate.pairsToImmutableMap()
Collector used at the end of a stream to build an immutable map
from a stream containing pairs.
|
static <A,B> Stream<Pair<A,B>> |
Guavate.zip(Stream<A> stream1,
Stream<B> stream2)
Creates a stream that combines two other streams, continuing until either stream ends.
|
| Modifier and Type | Method and Description |
|---|---|
default Pair<LocalDateDoubleTimeSeries,LocalDateDoubleTimeSeries> |
LocalDateDoubleTimeSeries.partition(ObjDoublePredicate<LocalDate> predicate)
Partition the time-series into a pair of distinct series using a predicate.
|
default Pair<LocalDateDoubleTimeSeries,LocalDateDoubleTimeSeries> |
LocalDateDoubleTimeSeries.partitionByValue(DoublePredicate predicate)
Partition the time-series into a pair of distinct series using a predicate.
|
| Modifier and Type | Method and Description |
|---|---|
<C,D> Pair<A,B> |
Pair.combinedWith(Pair<C,D> other,
BiFunction<? super A,? super C,? extends A> combinerFirst,
BiFunction<? super B,? super D,? extends B> combinerSecond)
Combines this instance with another.
|
static <A,B> Pair<A,B> |
Pair.of(A first,
B second)
Obtains a pair inferring the types.
|
Pair<A,Integer> |
ObjIntPair.toPair()
Converts this pair to an object-based
Pair. |
Pair<Long,Double> |
LongDoublePair.toPair()
Converts this pair to an object-based
Pair. |
Pair<Double,Double> |
DoublesPair.toPair()
Converts this pair to an object-based
Pair. |
Pair<A,Double> |
ObjDoublePair.toPair()
Converts this pair to an object-based
Pair. |
Pair<Integer,Double> |
IntDoublePair.toPair()
Converts this pair to an object-based
Pair. |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Pair<A,B>> |
Pair.Meta.beanType() |
org.joda.beans.BeanBuilder<? extends Pair<A,B>> |
Pair.Meta.builder() |
static <A,B> BinaryOperator<Pair<A,B>> |
Pair.combining(BiFunction<? super A,? super A,? extends A> combinerFirst,
BiFunction<? super B,? super B,? extends B> combinerSecond)
Returns a combiner of pair instances.
|
| Modifier and Type | Method and Description |
|---|---|
<C,D> Pair<A,B> |
Pair.combinedWith(Pair<C,D> other,
BiFunction<? super A,? super C,? extends A> combinerFirst,
BiFunction<? super B,? super D,? extends B> combinerSecond)
Combines this instance with another.
|
int |
Pair.compareTo(Pair<A,B> other)
Compares the pair based on the first element followed by the second element.
|
static <A> ObjDoublePair<A> |
ObjDoublePair.ofPair(Pair<A,Double> pair)
Obtains an instance from a
Pair. |
static <A> ObjIntPair<A> |
ObjIntPair.ofPair(Pair<A,Integer> pair)
Obtains an instance from a
Pair. |
static DoublesPair |
DoublesPair.ofPair(Pair<Double,Double> pair)
Obtains an instance from a
Pair. |
static IntDoublePair |
IntDoublePair.ofPair(Pair<Integer,Double> pair)
Obtains an instance from a
Pair. |
static LongDoublePair |
LongDoublePair.ofPair(Pair<Long,Double> pair)
Obtains an instance from a
Pair. |
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.