@Encoding.Naming(value = "setIterable*") @Encoding.Init void setIterable( final Iterable<T> elements) { this.list = List.ofAll(elements); }
@Encoding.Naming(value = "setIterable*") @Encoding.Init void setIterable( final Iterable<T> elements) { this.linear_seq = List.ofAll(elements); }
@Encoding.Naming(value = "setIterable*") @Encoding.Init void setIterable( final Iterable<T> elements) { this.stack = List.ofAll(elements); }
public Builder setIterableAttributesInOrder(Iterable<SMFAttribute> elements) { this.attributesInOrder_list = List.ofAll(elements); return this; }
public Builder setIterableAttributesInOrder(Iterable<SMFAttribute> elements) { this.attributesInOrder_list = List.ofAll(elements); return this; }
private javaslang.collection.List<Tuple2<AttributePath, Optional<Boolean>>> createAttributePaths(final javaslang.collection.List<Tuple2<Attribute, Optional<Boolean>>> attributesList) throws DMPPersistenceException { final List<Tuple2<AttributePath, Optional<Boolean>>> attributePaths = new ArrayList<>(); for (final Tuple2<Attribute, Optional<Boolean>> attributeTuple : attributesList) { final Optional<AttributePath> optionalAttributePath = createAttributePath(attributeTuple._1); if (optionalAttributePath.isPresent()) { attributePaths.add(Tuple.of(optionalAttributePath.get(), attributeTuple._2)); } } return javaslang.collection.List.ofAll(attributePaths); }
@Nullable @Override public Object convert(@Nullable Object source, TypeDescriptor sourceType, TypeDescriptor targetType) { if (source instanceof List) { return javaslang.collection.List.ofAll((Iterable<?>) source); } if (source instanceof java.util.Set) { return LinkedHashSet.ofAll((Iterable<?>) source); } if (source instanceof java.util.Map) { return LinkedHashMap.ofAll((java.util.Map<?, ?>) source); } return source; } };
return javaslang.collection.List.ofAll(attributes);
return List.ofAll(this.tokens); } finally { this.tokens.clear();
/** * sort components re. their natural order (begin from the end, i.e., component without output components) * * @param components original components set * @return */ private static javaslang.collection.List<Component> sortComponents(final Set<Component> components) { final Optional<Component> optionalLastComponent = components.stream() .filter(component -> { final Set<Component> outputComponents = component.getOutputComponents(); return outputComponents == null || outputComponents.isEmpty(); }) .findFirst(); if (!optionalLastComponent.isPresent()) { return javaslang.collection.List.ofAll(components); } final Component lastComponent = optionalLastComponent.get(); final javaslang.collection.List<Component> lastComponentList = javaslang.collection.List.of(lastComponent); final javaslang.collection.Map<String, Component> componentMap = javaslang.collection.HashSet.ofAll(components) .toMap(component -> Tuple.of(component.getUuid(), component)); final javaslang.collection.List<Component> emptyComponentList = javaslang.collection.List.empty(); return addComponents(lastComponentList, componentMap, emptyComponentList); }
final javaslang.collection.List<Tuple2<javaslang.collection.List<String>, Optional<String>>> entityMappingOutputTuples = javaslang.collection.List.ofAll(mappingOutputs) .filter(mappingOutputTuple -> mappingOutputTuple._1.isPresent())
final List<Tuple2<String, JsonNode>> finalTuplesList = javaslang.collection.List.ofAll(tuplesList) .map(tuple -> javaslang.Tuple.of(tuple.v1(), tuple.v2())) .toJavaList();
List.ofAll(IOUtils.readLines(this.stream, StandardCharsets.UTF_8)); final SMFTLineReaderType reader = SMFTLineReaderList.create(this.uri, lines, 1);
return invalid(List.ofAll(errors));
return invalid(List.ofAll(errors));
List.empty(), m.header().attributesByName(), this.source); if (!errors.isEmpty()) { return invalid(List.ofAll(errors));
return invalid(List.ofAll(errors));