Tabnine Logo
Collections.emptyNavigableSet
Code IndexAdd Tabnine to your IDE (free)

How to use
emptyNavigableSet
method
in
java.util.Collections

Best Java code snippets using java.util.Collections.emptyNavigableSet (Showing top 20 results out of 315)

origin: google/guava

 @Override
 public NavigableSet<String> create(String[] elements) {
  return Collections.emptyNavigableSet();
 }
})
origin: immutables/immutables

 @Value.Default
 @Value.ReverseOrder
 default NavigableSet<Integer> navs() {
  return Collections.emptyNavigableSet();
 }
}
origin: wildfly/wildfly

classes.add(Collections.checkedMap(Collections.emptyMap(), Void.class, Void.class).getClass());
classes.add(Collections.checkedNavigableMap(Collections.emptyNavigableMap(), Void.class, Void.class).getClass());
classes.add(Collections.checkedNavigableSet(Collections.emptyNavigableSet(), Void.class).getClass());
classes.add(Collections.checkedQueue(new LinkedList<>(), Void.class).getClass());
classes.add(Collections.checkedSet(Collections.emptySet(), Void.class).getClass());
classes.add(Collections.synchronizedMap(Collections.emptyMap()).getClass());
classes.add(Collections.synchronizedNavigableMap(Collections.emptyNavigableMap()).getClass());
classes.add(Collections.synchronizedNavigableSet(Collections.emptyNavigableSet()).getClass());
classes.add(Collections.synchronizedSet(Collections.emptySet()).getClass());
classes.add(Collections.synchronizedSortedMap(Collections.emptySortedMap()).getClass());
classes.add(Collections.unmodifiableMap(Collections.emptyMap()).getClass());
classes.add(Collections.unmodifiableNavigableMap(Collections.emptyNavigableMap()).getClass());
classes.add(Collections.unmodifiableNavigableSet(Collections.emptyNavigableSet()).getClass());
classes.add(Collections.unmodifiableSet(Collections.emptySet()).getClass());
classes.add(Collections.unmodifiableSortedMap(Collections.emptySortedMap()).getClass());
origin: wildfly/wildfly

assertTrue(immutability.test(Collections.emptyMap()));
assertTrue(immutability.test(Collections.emptyNavigableMap()));
assertTrue(immutability.test(Collections.emptyNavigableSet()));
assertTrue(immutability.test(Collections.emptySet()));
assertTrue(immutability.test(Collections.emptySortedMap()));
origin: com.google.guava/guava-testlib

 @Override
 public NavigableSet<String> create(String[] elements) {
  return Collections.emptyNavigableSet();
 }
})
origin: chungkwong/MathOCR

public NavigableSet<Pair<Integer,Double>> getErrata(int codePoint){
  return erratas.getOrDefault(codePoint,Collections.emptyNavigableSet());
}
public static ErrataList generate(Iterator<Pair<Integer,ConnectedComponent>> iterator,CharacterRecognizer recognizer,long support,double threhold){
origin: org.apache.sshd/sshd-core

  @Override
  public NavigableSet<Integer> getStartedRemotePortForwards() {
    synchronized (remoteToLocal) {
      if (remoteToLocal.isEmpty()) {
        return Collections.emptyNavigableSet();
      }

      return GenericUtils.asSortedSet(remoteToLocal.keySet());
    }
  }
}
origin: org.apache.sshd/sshd-osgi

@Override
public NavigableSet<Integer> getStartedLocalPortForwards() {
  synchronized (localToRemote) {
    if (localToRemote.isEmpty()) {
      return Collections.emptyNavigableSet();
    }
    return GenericUtils.asSortedSet(localToRemote.keySet());
  }
}
origin: org.apache.sshd/sshd-osgi

  @Override
  public NavigableSet<Integer> getStartedRemotePortForwards() {
    synchronized (remoteToLocal) {
      if (remoteToLocal.isEmpty()) {
        return Collections.emptyNavigableSet();
      }

      return GenericUtils.asSortedSet(remoteToLocal.keySet());
    }
  }
}
origin: org.apache.sshd/sshd-core

@Override
public NavigableSet<Integer> getStartedLocalPortForwards() {
  synchronized (localToRemote) {
    if (localToRemote.isEmpty()) {
      return Collections.emptyNavigableSet();
    }
    return GenericUtils.asSortedSet(localToRemote.keySet());
  }
}
origin: org.apache.sshd/sshd-core

@Override
public NavigableSet<Integer> getStartedRemotePortForwards() {
  ForwardingFilter filter = getForwardingFilter();
  return (filter == null) ? Collections.emptyNavigableSet() : filter.getStartedRemotePortForwards();
}
origin: org.apache.sshd/sshd-core

@Override
public NavigableSet<Integer> getStartedLocalPortForwards() {
  ForwardingFilter filter = getForwardingFilter();
  return (filter == null) ? Collections.emptyNavigableSet() : filter.getStartedLocalPortForwards();
}
origin: org.apache.sshd/sshd-osgi

@Override
public NavigableSet<Integer> getStartedRemotePortForwards() {
  ForwardingFilter filter = getForwardingFilter();
  return (filter == null) ? Collections.emptyNavigableSet() : filter.getStartedRemotePortForwards();
}
origin: io.permazen/permazen-coreapi

/**
 * Build a data structure that to optimize checking whether a field in an object type is being monitored.
 */
private synchronized NavigableSet<Long> buildHasFieldMonitorCache() {
  if (this.monitorMap == null)
    return Collections.emptyNavigableSet();
  final TreeSet<Long> set = new TreeSet<>();
  for (Schema otherSchema : this.schemas.versions.values()) {
    for (ObjType objType : otherSchema.objTypeMap.values()) {
      final int objTypeStorageId = objType.storageId;
      for (Field<?> field : objType.fieldsAndSubFields) {
        final int fieldStorageId = field.storageId;
        final Set<FieldMonitor> monitors = this.getMonitorsForField(fieldStorageId);
        if (monitors != null && monitors.stream().anyMatch(new MonitoredPredicate(objTypeStorageId, fieldStorageId)))
          set.add(this.buildHasFieldMonitorCacheKey(objTypeStorageId, fieldStorageId));
      }
    }
  }
  return set;
}
origin: org.apache.sshd/sshd-osgi

@Override
public NavigableSet<Integer> getStartedLocalPortForwards() {
  ForwardingFilter filter = getForwardingFilter();
  return (filter == null) ? Collections.emptyNavigableSet() : filter.getStartedLocalPortForwards();
}
origin: hypercube1024/firefly

public HTTP2ServerBuilder httpServer(SimpleHTTPServerConfiguration serverConfiguration,
                   HTTPBodyConfiguration httpBodyConfiguration) {
  AbstractErrorResponseHandler handler = DefaultErrorResponseHandlerLoader.getInstance().getHandler();
  server = new SimpleHTTPServer(serverConfiguration);
  server.badMessage((status, reason, request) -> {
    RoutingContext ctx = new RoutingContextImpl(request, Collections.emptyNavigableSet());
    handler.render(ctx, status, new BadMessageException(reason));
  });
  routerManager = RouterManager.create(httpBodyConfiguration);
  return this;
}
origin: com.fireflysource/firefly

public HTTP2ServerBuilder httpServer(SimpleHTTPServerConfiguration serverConfiguration,
                   HTTPBodyConfiguration httpBodyConfiguration) {
  AbstractErrorResponseHandler handler = DefaultErrorResponseHandlerLoader.getInstance().getHandler();
  server = new SimpleHTTPServer(serverConfiguration);
  server.badMessage((status, reason, request) -> {
    RoutingContext ctx = new RoutingContextImpl(request, Collections.emptyNavigableSet());
    handler.render(ctx, status, new BadMessageException(reason));
  });
  routerManager = RouterManager.create(httpBodyConfiguration);
  return this;
}
origin: vmware/xenon

@Test
public void readPost111() throws IOException {
  String prefix = "post-1.1.1-";
  assertCollectionEqualAndUsable(Collections.emptyList(), readFileAndDeserialize(prefix + "emptyList"));
  assertCollectionEqualAndUsable(Arrays.asList("test"), readFileAndDeserialize(prefix + "asList"));
  assertCollectionEqualAndUsable(Collections.emptyMap(), readFileAndDeserialize(prefix + "emptyMap"));
  assertCollectionEqualAndUsable(Collections.emptyNavigableMap(),
      readFileAndDeserialize(prefix + "emptyNavigableMap"));
  assertCollectionEqualAndUsable(Collections.emptySortedMap(), readFileAndDeserialize(prefix + "emptySortedMap"));
  assertCollectionEqualAndUsable(Collections.emptySet(), readFileAndDeserialize(prefix + "emptySet"));
  assertCollectionEqualAndUsable(Collections.emptyNavigableSet(),
      readFileAndDeserialize(prefix + "emptyNavigableSet"));
  assertCollectionEqualAndUsable(Collections.emptySortedSet(), readFileAndDeserialize(prefix + "emptySortedSet"));
  assertCollectionEqualAndUsable(Collections.singleton("test"), readFileAndDeserialize(prefix + "singletonSet"));
  assertCollectionEqualAndUsable(Collections.singletonList("test"),
      readFileAndDeserialize(prefix + "singletonList"));
  assertCollectionEqualAndUsable(Collections.singletonMap("k", "v"),
      readFileAndDeserialize(prefix + "singletonMap"));
}
origin: com.vmware.xenon/xenon-common

@Test
public void testEmptyCollectionSerialization() {
  Object target;
  target = Collections.emptyList();
  assertCollectionEqualAndUsable(target, serAndDeser(target));
  target = Collections.emptySet();
  assertCollectionEqualAndUsable(target, serAndDeser(target));
  target = Collections.emptyMap();
  assertCollectionEqualAndUsable(target, serAndDeser(target));
  target = Collections.emptyNavigableMap();
  assertCollectionEqualAndUsable(target, serAndDeser(target));
  target = Collections.emptyNavigableSet();
  assertCollectionEqualAndUsable(target, serAndDeser(target));
  target = Collections.emptySortedMap();
  assertCollectionEqualAndUsable(target, serAndDeser(target));
  target = Collections.emptySortedSet();
  assertCollectionEqualAndUsable(target, serAndDeser(target));
}
origin: vmware/xenon

@Test
public void testEmptyCollectionClone() {
  Object target;
  target = Collections.emptyList();
  assertCollectionEqualAndUsable(target, cloneWithKryo(target));
  target = Collections.emptySet();
  assertCollectionEqualAndUsable(target, cloneWithKryo(target));
  target = Collections.emptyMap();
  assertCollectionEqualAndUsable(target, cloneWithKryo(target));
  target = Collections.emptyNavigableMap();
  assertCollectionEqualAndUsable(target, cloneWithKryo(target));
  target = Collections.emptyNavigableSet();
  assertCollectionEqualAndUsable(target, cloneWithKryo(target));
  target = Collections.emptySortedMap();
  assertCollectionEqualAndUsable(target, cloneWithKryo(target));
  target = Collections.emptySortedSet();
  assertCollectionEqualAndUsable(target, cloneWithKryo(target));
}
java.utilCollectionsemptyNavigableSet

Popular methods of Collections

  • emptyList
    Returns the empty list (immutable). This list is serializable.This example illustrates the type-safe
  • sort
  • singletonList
    Returns an immutable list containing only the specified object. The returned list is serializable.
  • unmodifiableList
    Returns an unmodifiable view of the specified list. This method allows modules to provide users with
  • emptyMap
    Returns the empty map (immutable). This map is serializable.This example illustrates the type-safe w
  • emptySet
    Returns the empty set (immutable). This set is serializable. Unlike the like-named field, this metho
  • unmodifiableMap
    Returns an unmodifiable view of the specified map. This method allows modules to provide users with
  • singleton
    Returns an immutable set containing only the specified object. The returned set is serializable.
  • unmodifiableSet
    Returns an unmodifiable view of the specified set. This method allows modules to provide users with
  • singletonMap
    Returns an immutable map, mapping only the specified key to the specified value. The returned map is
  • addAll
    Adds all of the specified elements to the specified collection. Elements to be added may be specifie
  • reverse
    Reverses the order of the elements in the specified list. This method runs in linear time.
  • addAll,
  • reverse,
  • unmodifiableCollection,
  • shuffle,
  • enumeration,
  • list,
  • synchronizedMap,
  • synchronizedList,
  • reverseOrder,
  • emptyIterator

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onCreateOptionsMenu (Activity)
  • getExternalFilesDir (Context)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • CodeWhisperer alternatives
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