congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Sets.unmodifiableNavigableSet
Code IndexAdd Tabnine to your IDE (free)

How to use
unmodifiableNavigableSet
method
in
org.apache.drill.shaded.guava.com.google.common.collect.Sets

Best Java code snippets using org.apache.drill.shaded.guava.com.google.common.collect.Sets.unmodifiableNavigableSet (Showing top 7 results out of 315)

origin: org.apache.drill/drill-shaded-guava

static <E> Collection<E> unmodifiableCollectionSubclass(Collection<E> collection) {
 if (collection instanceof NavigableSet) {
  return Sets.unmodifiableNavigableSet((NavigableSet<E>) collection);
 } else if (collection instanceof SortedSet) {
  return Collections.unmodifiableSortedSet((SortedSet<E>) collection);
 } else if (collection instanceof Set) {
  return Collections.unmodifiableSet((Set<E>) collection);
 } else if (collection instanceof List) {
  return Collections.unmodifiableList((List<E>) collection);
 } else {
  return Collections.unmodifiableCollection(collection);
 }
}
origin: org.apache.drill/drill-shaded-guava

@Override
public NavigableSet<E> subSet(
  E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) {
 return unmodifiableNavigableSet(
   delegate.subSet(fromElement, fromInclusive, toElement, toInclusive));
}
origin: org.apache.drill/drill-shaded-guava

@Override
public NavigableSet<E> headSet(E toElement, boolean inclusive) {
 return unmodifiableNavigableSet(delegate.headSet(toElement, inclusive));
}
origin: org.apache.drill/drill-shaded-guava

@Override
public NavigableSet<K> navigableKeySet() {
 return Sets.unmodifiableNavigableSet(delegate.navigableKeySet());
}
origin: org.apache.drill/drill-shaded-guava

@Override
public NavigableSet<E> tailSet(E fromElement, boolean inclusive) {
 return unmodifiableNavigableSet(delegate.tailSet(fromElement, inclusive));
}
origin: org.apache.drill/drill-shaded-guava

@Override
public NavigableSet<K> descendingKeySet() {
 return Sets.unmodifiableNavigableSet(delegate.descendingKeySet());
}
origin: org.apache.drill/drill-shaded-guava

@Override
NavigableSet<E> createElementSet() {
 return Sets.unmodifiableNavigableSet(delegate().elementSet());
}
org.apache.drill.shaded.guava.com.google.common.collectSetsunmodifiableNavigableSet

Javadoc

Returns an unmodifiable view of the specified navigable set. This method allows modules to provide users with "read-only" access to internal navigable sets. Query operations on the returned set "read through" to the specified set, and attempts to modify the returned set, whether direct or via its collection views, result in an UnsupportedOperationException.

The returned navigable set will be serializable if the specified navigable set is serializable.

Popular methods of Sets

  • newHashSet
    Creates a mutable HashSet instance initially containing the given elements.Note: if elements are non
  • newLinkedHashSet
    Creates a mutable LinkedHashSet instance containing the given elements in order. Note: if mutability
  • newTreeSet
    Creates a mutable, empty TreeSet instance with the given comparator.Note: if mutability is not requi
  • union
    Returns an unmodifiable view of the union of two sets. The returned set contains all elements that a
  • filter
    Returns the elements of a SortedSet, unfiltered, that satisfy a predicate. The returned set is a liv
  • intersection
    Returns an unmodifiable view of the intersection of two sets. The returned set contains all elements
  • newHashSetWithExpectedSize
    Returns a new hash set using the smallest initial table size that can hold expectedSizeelements with
  • newIdentityHashSet
    Creates an empty Set that uses identity to determine equality. It compares object references, instea
  • cartesianProduct
    Returns every possible list that can be formed by choosing one element from each of the given sets i
  • difference
    Returns an unmodifiable view of the difference of two sets. The returned set contains all elements t
  • equalsImpl
    An implementation for Set#equals(Object).
  • hashCodeImpl
    An implementation for Set#hashCode().
  • equalsImpl,
  • hashCodeImpl,
  • immutableEnumSet,
  • makeComplementByHand,
  • newConcurrentHashSet,
  • newLinkedHashSetWithExpectedSize,
  • removeAllImpl

Popular in Java

  • Making http post requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • findViewById (Activity)
  • requestLocationUpdates (LocationManager)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JButton (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • Top Vim plugins
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