Package com.google.common.collect

Examples of com.google.common.collect.ImmutableList$SerializedForm


    }

    @SuppressWarnings("unchecked")
    @Test
    public void shouldReturnSuppliedValue() {
        ImmutableList list = mock(ImmutableList.class);
        GetMetricsResult result = new GetMetricsResult(list);
        assertThat(result.getMetricValues(), is(list));
    }
View Full Code Here


                builder.add(((Expression)arg).accept(this, null));
            } else {
                builder.add(arg);
            }
        }
        ImmutableList args = builder.build();
        if (args.equals(expr.getArgs())) {
            return expr;
        } else {
            if (expr instanceof Predicate) {
                return BooleanTemplate.create(expr.getTemplate(), args);
            } else {
View Full Code Here

    shutdownCommandListener = system.actorOf(new Props(ActorLevel0_SystemShutdowner.class), "shutdownCommandListener");
  }
 
  @SuppressWarnings({ "unchecked" })
  public List<Object> run(final List<Object> data, List<Object> parameters, Function<?, ?> functionToApply, final int numberOfWorkers, int numberOfSecondsTimeout) {
    final ImmutableList iData = ImmutableList.builder().addAll(data).build();
    ActorRef actorLevel1 = system.actorOf(new Props(new UntypedActorFactory() {
      private static final long serialVersionUID = 1L;
      public UntypedActor create() {
        return new ActorLevel1(iData, numberOfWorkers);
      }
View Full Code Here

        Symbol query = visitor.process(op_or, null);
        assertThat(query, instanceOf(Function.class));
    }

    private FunctionInfo functionInfo(String name, DataType dataType, boolean isPredicate) {
        ImmutableList dataTypes = null;
        if (isPredicate) {
            dataTypes = ImmutableList.of(dataType);
        } else {
            dataTypes = ImmutableList.of(dataType, dataType);
        }
View Full Code Here

    {
      Iterator localIterator = KEYS_SPLITTER.split(paramString).iterator();
      while (localIterator.hasNext())
      {
        String str1 = (String)localIterator.next();
        ImmutableList localImmutableList = ImmutableList.copyOf(KEY_VALUE_SPLITTER.split(str1));
        Preconditions.checkArgument(!localImmutableList.isEmpty(), "blank key-value pair");
        Preconditions.checkArgument(localImmutableList.size() <= 2, "key-value pair %s with more than one equals sign", new Object[] { str1 });
        String str2 = (String)localImmutableList.get(0);
        ValueParser localValueParser = (ValueParser)VALUE_PARSERS.get(str2);
        Preconditions.checkArgument(localValueParser != null, "unknown key %s", new Object[] { str2 });
        String str3 = localImmutableList.size() == 1 ? null : (String)localImmutableList.get(1);
        localValueParser.parse(localCacheBuilderSpec, str2, str3);
      }
    }
    return localCacheBuilderSpec;
  }
View Full Code Here

        set(Lists.newArrayList(this.values));
        return;
      }
      for (int i = 0; i < this.futures.size(); i++)
        this.values.add(null);
      ImmutableList localImmutableList = this.futures;
      for (int j = 0; j < localImmutableList.size(); j++)
      {
        final ListenableFuture localListenableFuture = (ListenableFuture)localImmutableList.get(j);
        final int k = j;
        localListenableFuture.addListener(new Runnable()
        {
          public void run()
          {
View Full Code Here

TOP

Related Classes of com.google.common.collect.ImmutableList$SerializedForm

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.