protected void _setValue(final JvmDoubleAnnotationValue it, final int[] value, final String componentType, final boolean mustBeArray) { final Consumer<Integer> _function = (Integer v) -> { EList<Double> _values = it.getValues(); _values.add(Double.valueOf(((double) (v).intValue()))); }; ((List<Integer>)Conversions.doWrapArray(value)).forEach(_function); }
protected void _setValue(final JvmLongAnnotationValue it, final short[] value, final String componentType, final boolean mustBeArray) { final Consumer<Short> _function = (Short v) -> { EList<Long> _values = it.getValues(); _values.add(Long.valueOf(((long) (v).shortValue()))); }; ((List<Short>)Conversions.doWrapArray(value)).forEach(_function); }
protected void suppressWarnings(final IXtextGeneratorFileSystemAccess fsa, final TypeReference... types) { final Consumer<TypeReference> _function = (TypeReference it) -> { this.suppressWarnings(fsa, it); }; ((List<TypeReference>)Conversions.doWrapArray(types)).forEach(_function); }
@Override public Boolean apply(final LoggingTester.LogEntry log) { return Boolean.valueOf(((Objects.equal(level, null) || Objects.equal(log.level, level)) && IterableExtensions.<String>forall(((Iterable<String>)Conversions.doWrapArray(messageParts)), new Function1<String, Boolean>() { @Override public Boolean apply(final String it) { return Boolean.valueOf(log.message.contains(it)); } }))); } };
@Override public boolean isPackage(final char[][] parentPackageName, final char[] packageName) { if (((packageName == null) || (packageName.length == 0))) { return false; } return Character.isLowerCase((IterableExtensions.<Character>head(((Iterable<Character>)Conversions.doWrapArray(packageName)))).charValue()); }
protected void _setValue(final JvmFloatAnnotationValue it, final char[] value, final String componentType, final boolean mustBeArray) { final Consumer<Character> _function = (Character v) -> { EList<Float> _values = it.getValues(); _values.add(Float.valueOf(((float) (v).charValue()))); }; ((List<Character>)Conversions.doWrapArray(value)).forEach(_function); }
protected void _setValue(final JvmCharAnnotationValue it, final byte[] value, final String componentType, final boolean mustBeArray) { final Consumer<Byte> _function = (Byte v) -> { EList<Character> _values = it.getValues(); _values.add(Character.valueOf(((char) (v).byteValue()))); }; ((List<Byte>)Conversions.doWrapArray(value)).forEach(_function); }
protected void _setValue(final JvmDoubleAnnotationValue it, final float[] value, final String componentType, final boolean mustBeArray) { final Consumer<Float> _function = (Float v) -> { EList<Double> _values = it.getValues(); _values.add(Double.valueOf(((double) (v).floatValue()))); }; ((List<Float>)Conversions.doWrapArray(value)).forEach(_function); }
protected void _setValue(final JvmDoubleAnnotationValue it, final char[] value, final String componentType, final boolean mustBeArray) { final Consumer<Character> _function = (Character v) -> { EList<Double> _values = it.getValues(); _values.add(Double.valueOf(((double) (v).charValue()))); }; ((List<Character>)Conversions.doWrapArray(value)).forEach(_function); }
protected void _setValue(final JvmFloatAnnotationValue it, final long[] value, final String componentType, final boolean mustBeArray) { final Consumer<Long> _function = (Long v) -> { EList<Float> _values = it.getValues(); _values.add(Float.valueOf(((float) (v).longValue()))); }; ((List<Long>)Conversions.doWrapArray(value)).forEach(_function); }
protected void _setValue(final JvmFloatAnnotationValue it, final short[] value, final String componentType, final boolean mustBeArray) { final Consumer<Short> _function = (Short v) -> { EList<Float> _values = it.getValues(); _values.add(Float.valueOf(((float) (v).shortValue()))); }; ((List<Short>)Conversions.doWrapArray(value)).forEach(_function); }
protected void _setValue(final JvmIntAnnotationValue it, final byte[] value, final String componentType, final boolean mustBeArray) { final Consumer<Byte> _function = (Byte v) -> { EList<Integer> _values = it.getValues(); _values.add(Integer.valueOf(((int) (v).byteValue()))); }; ((List<Byte>)Conversions.doWrapArray(value)).forEach(_function); }
/** * filter against types (must match one of the given types) */ public Iterable<?> filterByTypes(final Iterable<?> unfiltered, final Class<?>... types) { final Function1<Object, Boolean> _function = (Object obj) -> { final Function1<Class<?>, Boolean> _function_1 = (Class<?> it) -> { return Boolean.valueOf(it.isInstance(obj)); }; return Boolean.valueOf(IterableExtensions.<Class<?>>exists(((Iterable<Class<?>>)Conversions.doWrapArray(types)), _function_1)); }; return IterableExtensions.filter(unfiltered, _function); }
public static boolean testArg(final String[] args, final String... values) { final Function1<String, Boolean> _function = (String arg) -> { return Boolean.valueOf(ServerLauncher.testArg(arg, values)); }; return IterableExtensions.<String>exists(((Iterable<String>)Conversions.doWrapArray(args)), _function); }
protected void _internalSet(final String name, final String[] values, final boolean mustBeArray) { ConditionUtils.checkIterable(((Iterable<?>)Conversions.doWrapArray(values)), "values"); this.setValues(name, values, String.class.getName(), mustBeArray); }
public <T extends Object> Iterable<T> excludeTypes(final Iterable<T> list, final Class<?>... excluded) { final Function2<Iterable<T>, Class<?>, Iterable<T>> _function = (Iterable<T> l, Class<?> c) -> { return this.<T>excludeType(l, c); }; return IterableExtensions.<Class<?>, Iterable<T>>fold(((Iterable<Class<?>>)Conversions.doWrapArray(excluded)), list, _function); }
protected void _internalSet(final String name, final byte[] values, final boolean mustBeArray) { ConditionUtils.checkIterable(((Iterable<?>)Conversions.doWrapArray(values)), "values"); this.setValues(name, values, "byte", mustBeArray); }
public Iterable<FBasicTypeId> getPrimitiveDataTypes() { final Function1<FBasicTypeId, Boolean> _function = (FBasicTypeId it) -> { return Boolean.valueOf(((it.getValue() != FBasicTypeId.UNDEFINED_VALUE) && (it.getValue() != FBasicTypeId.BYTE_BUFFER_VALUE))); }; return IterableExtensions.<FBasicTypeId>filter(((Iterable<FBasicTypeId>)Conversions.doWrapArray(FBasicTypeId.values())), _function); }
/** * Inspired by org.eclipse.xtext.util.Modules2 */ protected static com.google.inject.Module mixin(final com.google.inject.Module... modules) { final com.google.inject.Module seed = Modules.EMPTY_MODULE; final Function2<com.google.inject.Module, com.google.inject.Module, com.google.inject.Module> _function = (com.google.inject.Module current, com.google.inject.Module module) -> { return Modules.override(current).with(module); }; return IterableExtensions.<com.google.inject.Module, com.google.inject.Module>fold(((Iterable<com.google.inject.Module>)Conversions.doWrapArray(modules)), seed, _function); }
private String renderHeaderRow(final Object obj) { final Function1<String[], String> _function = (String[] col) -> { return this.renderHeaderColumn(obj, col[1]); }; return this.wrapHeaderRow(ListExtensions.<String[], String>map(((List<String[]>)Conversions.doWrapArray(this.cols)), _function)); }