Tabnine Logo
Set.spliterator
Code IndexAdd Tabnine to your IDE (free)

How to use
spliterator
method
in
java.util.Set

Best Java code snippets using java.util.Set.spliterator (Showing top 20 results out of 477)

origin: google/guava

@Override
public Spliterator<E> spliterator() {
 return Collections.singleton(element).spliterator();
}
origin: prestodb/presto

@Override
public Spliterator<E> spliterator() {
 return Collections.singleton(element).spliterator();
}
origin: google/guava

@Override
Spliterator<K> keySpliterator() {
 return delegate.keySet().spliterator();
}
origin: google/guava

@Override
Spliterator<Entry<K, V>> entrySpliterator() {
 return CollectSpliterators.map(delegate.entrySet().spliterator(), Maps::unmodifiableEntry);
}
origin: google/guava

@Override
Spliterator<Cell<R, C, V>> cellSpliterator() {
 return CollectSpliterators.flatMap(
   backingMap.entrySet().spliterator(),
   (Entry<R, Map<C, V>> rowEntry) ->
     CollectSpliterators.map(
       rowEntry.getValue().entrySet().spliterator(),
       (Entry<C, V> columnEntry) ->
         Tables.immutableCell(
           rowEntry.getKey(), columnEntry.getKey(), columnEntry.getValue())),
   Spliterator.DISTINCT | Spliterator.SIZED,
   size());
}
origin: prestodb/presto

@Override
Spliterator<Entry<K, V>> entrySpliterator() {
 return CollectSpliterators.map(delegate.entrySet().spliterator(), Maps::unmodifiableEntry);
}
origin: google/guava

@Override
Spliterator<Entry<K, V2>> entrySpliterator() {
 return CollectSpliterators.map(
   fromMap.entrySet().spliterator(), Maps.<K, V1, V2>asEntryToEntryFunction(transformer));
}
origin: prestodb/presto

@Override
Spliterator<K> keySpliterator() {
 return delegate.keySet().spliterator();
}
origin: google/guava

@Override
public Spliterator<Entry<Class<? extends B>, B>> spliterator() {
 return CollectSpliterators.map(
   delegate().spliterator(), MutableClassToInstanceMap::checkedEntry);
}
origin: google/guava

 @SuppressWarnings("unchecked")
 @Override
 Spliterator<Cell<C, R, V>> cellSpliterator() {
  return CollectSpliterators.map(original.cellSet().spliterator(), (Function) TRANSPOSE_CELL);
 }
}
origin: google/guava

@Override
Spliterator<Entry<K, V>> entrySpliterator() {
 return CollectSpliterators.flatMap(
   map.entrySet().spliterator(),
   keyToValueCollectionEntry -> {
    K key = keyToValueCollectionEntry.getKey();
    Collection<V> valueCollection = keyToValueCollectionEntry.getValue();
    return CollectSpliterators.map(
      valueCollection.spliterator(), (V value) -> Maps.immutableEntry(key, value));
   },
   Spliterator.SIZED,
   size());
}
origin: prestodb/presto

@Override
Spliterator<Cell<R, C, V>> cellSpliterator() {
 return CollectSpliterators.flatMap(
   backingMap.entrySet().spliterator(),
   (Entry<R, Map<C, V>> rowEntry) ->
     CollectSpliterators.map(
       rowEntry.getValue().entrySet().spliterator(),
       (Entry<C, V> columnEntry) ->
         Tables.immutableCell(
           rowEntry.getKey(), columnEntry.getKey(), columnEntry.getValue())),
   Spliterator.DISTINCT | Spliterator.SIZED,
   size());
}
origin: prestodb/presto

@Override
Spliterator<Entry<K, V2>> entrySpliterator() {
 return CollectSpliterators.map(
   fromMap.entrySet().spliterator(), Maps.<K, V1, V2>asEntryToEntryFunction(transformer));
}
origin: prestodb/presto

@Override
public Spliterator<Entry<Class<? extends B>, B>> spliterator() {
 return CollectSpliterators.map(
   delegate().spliterator(), MutableClassToInstanceMap::checkedEntry);
}
origin: prestodb/presto

 @SuppressWarnings("unchecked")
 @Override
 Spliterator<Cell<C, R, V>> cellSpliterator() {
  return CollectSpliterators.map(original.cellSet().spliterator(), (Function) TRANSPOSE_CELL);
 }
}
origin: google/guava

@Override
Spliterator<Cell<R, C, V2>> cellSpliterator() {
 return CollectSpliterators.map(fromTable.cellSet().spliterator(), cellFunction());
}
origin: prestodb/presto

@Override
Spliterator<Entry<K, V>> entrySpliterator() {
 return CollectSpliterators.flatMap(
   map.entrySet().spliterator(),
   keyToValueCollectionEntry -> {
    K key = keyToValueCollectionEntry.getKey();
    Collection<V> valueCollection = keyToValueCollectionEntry.getValue();
    return CollectSpliterators.map(
      valueCollection.spliterator(), (V value) -> Maps.immutableEntry(key, value));
   },
   Spliterator.SIZED,
   size());
}
origin: prestodb/presto

@Override
Spliterator<Cell<R, C, V2>> cellSpliterator() {
 return CollectSpliterators.map(fromTable.cellSet().spliterator(), cellFunction());
}
origin: google/guava

static <E> Spliterator<E> spliteratorImpl(Multiset<E> multiset) {
 Spliterator<Entry<E>> entrySpliterator = multiset.entrySet().spliterator();
 return CollectSpliterators.flatMap(
   entrySpliterator,
   entry -> Collections.nCopies(entry.getCount(), entry.getElement()).spliterator(),
   Spliterator.SIZED
     | (entrySpliterator.characteristics()
       & (Spliterator.ORDERED | Spliterator.NONNULL | Spliterator.IMMUTABLE)),
   multiset.size());
}
origin: prestodb/presto

static <E> Spliterator<E> spliteratorImpl(Multiset<E> multiset) {
 Spliterator<Entry<E>> entrySpliterator = multiset.entrySet().spliterator();
 return CollectSpliterators.flatMap(
   entrySpliterator,
   entry -> Collections.nCopies(entry.getCount(), entry.getElement()).spliterator(),
   Spliterator.SIZED
     | (entrySpliterator.characteristics()
       & (Spliterator.ORDERED | Spliterator.NONNULL | Spliterator.IMMUTABLE)),
   multiset.size());
}
java.utilSetspliterator

Popular methods of Set

  • add
    Adds the specified element to this set if it is not already present (optional operation). More forma
  • contains
    Returns true if this set contains the specified element. More formally, returns true if and only if
  • iterator
  • size
  • isEmpty
    Returns true if this set contains no elements.
  • addAll
    Adds all of the elements in the specified collection to this set if they're not already present (opt
  • remove
    Removes the specified element from this set if it is present (optional operation). More formally, re
  • toArray
    Returns an array containing all of the elements in this set; the runtime type of the returned array
  • stream
  • clear
    Removes all of the elements from this set (optional operation). The set will be empty after this cal
  • removeAll
    Removes from this set all of its elements that are contained in the specified collection (optional o
  • forEach
  • removeAll,
  • forEach,
  • equals,
  • containsAll,
  • retainAll,
  • hashCode,
  • removeIf,
  • parallelStream,
  • of

Popular in Java

  • Reading from database using SQL prepared statement
  • getApplicationContext (Context)
  • startActivity (Activity)
  • getSystemService (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • String (java.lang)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • ImageIO (javax.imageio)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now