Java Code Examples for io.vavr.collection.Array#ofAll()

The following examples show how to use io.vavr.collection.Array#ofAll() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CategoryColumnTest.java    From paleo with Apache License 2.0 5 votes vote down vote up
@Test
public void createValues() {
    CategoryColumnId id = CategoryColumnId.of("test");
    Array<String> values = Array.ofAll(this.wordGenerator.randomWords(100));
    CategoryColumn column = CategoryColumn.builder(id).addAll(values).build();
    assertEquals(93, column.getCategories().length());
    assertEquals(values, column.valueStream().toArray());
}
 
Example 2
Source File: TimestampColumn.java    From paleo with Apache License 2.0 4 votes vote down vote up
@Override
public TimestampColumn build() {
    return new TimestampColumn(id, Array.ofAll(values), metaDataBuilder.build());
}
 
Example 3
Source File: GenericColumn.java    From paleo with Apache License 2.0 4 votes vote down vote up
public static <V, I extends ColumnIds.GenericColumnId> GenericColumn<V, I> ofAll(I id, Iterable<V> values, Map<String, String> metaData) {
    return new GenericColumn<>(id, Array.ofAll(values), Objects.requireNonNull(metaData, "metaData is null"));
}
 
Example 4
Source File: CategoryColumn.java    From paleo with Apache License 2.0 4 votes vote down vote up
public CategoryColumn build() {
    Array<String> categories = Array.ofAll(indexByCategory.keySet());
    return new CategoryColumn(id, categories, Array.ofAll(indexPerRow), metaDataBuilder.build());
}
 
Example 5
Source File: StringColumn.java    From paleo with Apache License 2.0 4 votes vote down vote up
@Override
public StringColumn build() {
    return new StringColumn(id, Array.ofAll(values), metaDataBuilder.build());
}
 
Example 6
Source File: InMemoryThreadPoolBulkheadRegistry.java    From resilience4j with Apache License 2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public Seq<ThreadPoolBulkhead> getAllBulkheads() {
    return Array.ofAll(entryMap.values());
}
 
Example 7
Source File: InMemoryBulkheadRegistry.java    From resilience4j with Apache License 2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public Seq<Bulkhead> getAllBulkheads() {
    return Array.ofAll(entryMap.values());
}
 
Example 8
Source File: InMemoryTimeLimiterRegistry.java    From resilience4j with Apache License 2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public Seq<TimeLimiter> getAllTimeLimiters() {
    return Array.ofAll(entryMap.values());
}
 
Example 9
Source File: InMemoryRetryRegistry.java    From resilience4j with Apache License 2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public Seq<Retry> getAllRetries() {
    return Array.ofAll(entryMap.values());
}
 
Example 10
Source File: InMemoryRateLimiterRegistry.java    From resilience4j with Apache License 2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public Seq<RateLimiter> getAllRateLimiters() {
    return Array.ofAll(entryMap.values());
}
 
Example 11
Source File: InMemoryCircuitBreakerRegistry.java    From resilience4j with Apache License 2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public Seq<CircuitBreaker> getAllCircuitBreakers() {
    return Array.ofAll(entryMap.values());
}
 
Example 12
Source File: DefaultEventConsumerRegistry.java    From resilience4j with Apache License 2.0 4 votes vote down vote up
@Override
public Seq<CircularEventConsumer<T>> getAllEventConsumer() {
    return Array.ofAll(registry.values());
}
 
Example 13
Source File: ArrayTest.java    From vavr-jackson with Apache License 2.0 4 votes vote down vote up
@Override
protected Seq<?> of(Object... objects) {
    return Array.ofAll(Arrays.asList(objects));
}
 
Example 14
Source File: IndexedSeqTest.java    From vavr-jackson with Apache License 2.0 4 votes vote down vote up
@Override
protected Seq<?> of(Object... objects) {
    return Array.ofAll(Arrays.asList(objects));
}