List of usage examples for com.google.common.collect Lists newLinkedList
@GwtCompatible(serializable = true) public static <E> LinkedList<E> newLinkedList()
From source file:magma.tools.competition.presentation.view.SetPhaseView.java
public SetPhaseView(Tournament tournament) { this.tournament = tournament; handlers = Lists.newLinkedList(); initComponents(); }
From source file:com.ykun.commons.utils.collection.ListUtils.java
/** * @see com.google.common.collect.Lists#newArrayList */ public static <E> LinkedList<E> newLinkedList() { return Lists.newLinkedList(); }
From source file:presto.android.gui.GraphUtil.java
public void findReachableNodes(NNode start, Set<NNode> reachableNodes) { LinkedList<NNode> worklist = Lists.newLinkedList(); worklist.add(start);//w ww .j a v a 2 s.com reachableNodes.add(start); while (!worklist.isEmpty()) { NNode n = worklist.remove(); for (Iterator<NNode> iter = n.getSuccessors(); iter.hasNext();) { NNode s = iter.next(); if (reachableNodes.contains(s)) { continue; } if (!(s instanceof NOpNode)) { worklist.add(s); } reachableNodes.add(s); if (verbose) { System.out.println("[findReachableNodes] Edge: " + n + " --> " + s); } } } }
From source file:org.gradle.performance.fixture.CompositeDataCollector.java
@Override public List<String> getAdditionalJvmOpts(File workingDir) { List<String> additional = Lists.newLinkedList(); for (DataCollector collector : collectors) { additional.addAll(collector.getAdditionalJvmOpts(workingDir)); }/*from ww w.j a va 2 s. c om*/ return additional; }
From source file:org.locationtech.geogig.rest.repository.JsonParams.java
@Override public String[] getValuesArray(String key) { List<String> values = Lists.newLinkedList(); JsonValue valueArray = options.get(key); if (valueArray != null) { if (valueArray.getValueType().equals(ValueType.ARRAY)) { JsonArray array = (JsonArray) valueArray; for (JsonValue value : array) { values.add(value.toString()); }// w w w . ja v a 2 s . co m } else { values.add(jsonValueToString(valueArray)); } } return values.toArray(new String[0]); }
From source file:com.github.autermann.yaml.util.LinkedListSupplier.java
@Override public List<?> get() { return Lists.newLinkedList(); }
From source file:hellfirepvp.astralsorcery.common.registry.internal.InternalRegistryPrimer.java
public <V extends IForgeRegistryEntry<V>> V register(V entry) { Class<V> type = entry.getRegistryType(); List<IForgeRegistryEntry<?>> entries = primed.get(type); if (entries == null) { entries = Lists.newLinkedList(); primed.put(type, entries);//from w w w.j a v a 2 s . c om } entries.add(entry); return entry; }
From source file:org.apache.aurora.scheduler.async.TaskGroup.java
TaskGroup(GroupKey key, String initialTaskId) { this.key = key; this.penaltyMs = 0; this.tasks = Lists.newLinkedList(); this.tasks.add(initialTaskId); }
From source file:com.google.dart.engine.utilities.general.TimeCounter.java
/** * Returns the stack of {@link TimeCounter} started on the current {@link Thread} and not stopped * yet.//www . j a v a 2 s .c om */ private static LinkedList<TimeCounter> getCountersStack() { LinkedList<TimeCounter> stack = stacks.get(); if (stack == null) { stack = Lists.newLinkedList(); stacks.set(stack); } return stack; }
From source file:org.apache.crunch.impl.mr.plan.NodePath.java
public NodePath() { this.path = Lists.newLinkedList(); }