List of usage examples for com.google.common.collect ImmutableList of
public static <E> ImmutableList<E> of(E e1, E e2)
From source file:com.mysema.query.types.expr.CollectionOperation.java
public static <E> CollectionOperation<E> create(Operator<?> op, Class<E> type, Expression<?> one, Expression<?> two) { return new CollectionOperation<E>(op, type, ImmutableList.of(one, two)); }
From source file:com.facebook.buck.features.ocaml.OcamlDescriptionEnhancer.java
public static ImmutableList<Arg> toStringWithMacrosArgs(BuildTarget target, CellPathResolver cellPathResolver, ActionGraphBuilder graphBuilder, Iterable<StringWithMacros> flags) { ImmutableList.Builder<Arg> args = ImmutableList.builder(); StringWithMacrosConverter macrosConverter = StringWithMacrosConverter.of(target, cellPathResolver, ImmutableList.of(new LocationMacroExpander(), new ExecutableMacroExpander())); for (StringWithMacros flag : flags) { args.add(macrosConverter.convert(flag, graphBuilder)); }// w w w. j ava2s .c o m return args.build(); }
From source file:com.mysema.query.spatial.PolygonOperation.java
public static <D extends Polygon> PolygonOperation<D> create(Class<D> type, Operator<? super D> op, Expression<?> one, Expression<?> two) { return new PolygonOperation<D>(type, op, ImmutableList.of(one, two)); }
From source file:com.spectralogic.ds3autogen.test.helpers.RemoveDollarSignConverterHelper.java
/** * Creates a populated list of Ds3AnnotationElements */// w ww.jav a 2 s.c om public static ImmutableList<Ds3AnnotationElement> createPopulatedAnnotationElements() { return ImmutableList.of(new Ds3AnnotationElement("CollectionValue", "Pools", "java.lang.String"), new Ds3AnnotationElement("CollectionValueRenderingMode", "SINGLE_BLOCK_FOR_ALL_ELEMENTS", "com.spectralogic.util.marshal.CustomMarshaledName$CollectionNameRenderingMode")); }
From source file:org.codehaus.httpcache4j.auth.AuthenticatorBase.java
protected static List<AuthenticatorStrategy> defaultStrategies() { return ImmutableList.of(new DigestAuthenticatorStrategy(), new BasicAuthenticatorStrategy()); }
From source file:com.mysema.query.spatial.GeometryOperation.java
public static <D extends Geometry> GeometryOperation<D> create(Class<D> type, Operator<? super D> op, Expression<?> one, Expression<?> two) { return new GeometryOperation<D>(type, op, ImmutableList.of(one, two)); }
From source file:com.mysema.query.spatial.jts.JTSPointOperation.java
public static <D extends Point> JTSPointOperation<D> create(Class<D> type, Operator<? super D> op, Expression<?> one, Expression<?> two) { return new JTSPointOperation<D>(type, op, ImmutableList.of(one, two)); }
From source file:com.mysema.query.spatial.LineStringOperation.java
public static <D extends LineString> LineStringOperation<D> create(Class<D> type, Operator<? super D> op, Expression<?> one, Expression<?> two) { return new LineStringOperation<D>(type, op, ImmutableList.of(one, two)); }
From source file:com.mysema.query.types.expr.TimeOperation.java
public static <D extends Comparable<?>> TimeExpression<D> create(Class<D> type, Operator<? super D> op, Expression<?> one, Expression<?> two) { return new TimeOperation<D>(type, op, ImmutableList.of(one, two)); }
From source file:com.mysema.query.spatial.jts.JTSPolygonOperation.java
public static <D extends Polygon> JTSPolygonOperation<D> create(Class<D> type, Operator<? super D> op, Expression<?> one, Expression<?> two) { return new JTSPolygonOperation<D>(type, op, ImmutableList.of(one, two)); }