private ImmutableSet<Entry<E>> createEntrySet() { return isEmpty() ? ImmutableSet.<Entry<E>>of() : new EntrySet(); }
private ImmutableSet<Entry<E>> createEntrySet() { return isEmpty() ? ImmutableSet.<Entry<E>>of() : new EntrySet(); }
/** * Returns true iff the bag contains no value * * @return true iff the bag contains no value */ public final boolean isEmpty() { return elements.isEmpty(); }
public boolean isUnifiableByCurrentAlgorithm() { return collectionFunctions.isEmpty(); }
private final ImmutableSet<Entry<E>> createEntrySet() { return isEmpty() ? ImmutableSet.<Entry<E>>of() : new EntrySet(); }
private final ImmutableSet<Entry<E>> createEntrySet() { return isEmpty() ? ImmutableSet.<Entry<E>>of() : new EntrySet(); }
private final ImmutableSet<Entry<E>> createEntrySet() { return isEmpty() ? ImmutableSet.<Entry<E>> of() : new EntrySet(); }
private final ImmutableSet<Entry<E>> createEntrySet() { return isEmpty() ? ImmutableSet.<Entry<E>>of() : new EntrySet(); }
private ImmutableSet<Entry<E>> createEntrySet() { return isEmpty() ? ImmutableSet.<Entry<E>>of() : new EntrySet(); }
private final ImmutableSet<Entry<E>> createEntrySet() { return isEmpty() ? ImmutableSet.<Entry<E>>of() : new EntrySet(); }
private final ImmutableSet<Entry<E>> createEntrySet() { return isEmpty() ? ImmutableSet.<Entry<E>>of() : new EntrySet(); }
private final ImmutableSet<Entry<E>> createEntrySet() { return isEmpty() ? ImmutableSet.<Entry<E>>of() : new EntrySet(); }
private ImmutableSet<Entry<E>> createEntrySet() { return isEmpty() ? ImmutableSet.<Entry<E>>of() : new EntrySet(); }
private static Variable computeFrame( ImmutableMultiset<KItem> collectionPatterns, ImmutableMultiset<Term> collectionFunctions, ImmutableMultiset<Variable> collectionVariables) { if (collectionPatterns.isEmpty() && collectionFunctions.isEmpty() && collectionVariables.size() == 1) { return collectionVariables.iterator().next(); } else { return null; } }
/** * Returns all the buttons' states. It could be easier for most classes to use the * {@link #getClickCount(MouseButton)} method, and that also results in less object creation. * * @return a defensive copy of the click counts of all the buttons at this point in time. */ public Multiset<MouseButton> getClickCounts() { if (_clickCounts.isEmpty()) { return EnumMultiset.create(MouseButton.class); } else { return EnumMultiset.create(_clickCounts); } }
@Override public void enterModule(ModuleMetadata currentModule, Node moduleScopeRoot) { if (!currentModule.isGoogModule()) { return; } checkState(currentModuleInfo == null); checkState(!currentModule.googNamespaces().isEmpty()); currentModuleInfo = new ModuleInfo(Iterables.getFirst(currentModule.googNamespaces(), "")); }
/** * Returns all the buttons' states. It could be easier for most classes to use the * {@link #getClickCount(MouseButton)} method, and that also results in less object creation. * * @return a defensive copy of the click counts of all the buttons at this point in time. */ public Multiset<MouseButton> getClickCounts() { if (_clickCounts.isEmpty()) { return EnumMultiset.create(MouseButton.class); } else { return EnumMultiset.create(_clickCounts); } }
public Multiset<MouseButton> getClickCounts(final EnumMultiset<MouseButton> store) { final EnumMultiset<MouseButton> rVal = store; if (store == null) { if (_clickCounts.isEmpty()) { return EnumMultiset.create(MouseButton.class); } else { return EnumMultiset.create(_clickCounts); } } rVal.clear(); rVal.addAll(_clickCounts); return rVal; }
public Multiset<MouseButton> getClickCounts(final EnumMultiset<MouseButton> store) { final EnumMultiset<MouseButton> rVal = store; if (store == null) { if (_clickCounts.isEmpty()) { return EnumMultiset.create(MouseButton.class); } else { return EnumMultiset.create(_clickCounts); } } rVal.clear(); rVal.addAll(_clickCounts); return rVal; }