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

How to use
emptyEnumeration
method
in
java.util.Collections

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

origin: javamelody/javamelody

  @Override
  public Enumeration<String> getInitParameterNames() {
    return Collections.emptyEnumeration();
  }
};
origin: wildfly/wildfly

public Enumeration<Permission> elements() {
  return Collections.emptyEnumeration();
}
origin: org.springframework.boot/spring-boot

@Override
public Enumeration<URL> findResources(String name) throws IOException {
  return Collections.emptyEnumeration();
}
origin: robovm/robovm

/**
 * Finds an enumeration of URLs for the resource with the specified name.
 * This implementation just returns an empty {@code Enumeration}; it should
 * be overridden in subclasses.
 *
 * @param resName
 *            the name of the resource to find.
 * @return an enumeration of {@code URL} objects for the requested resource.
 * @throws IOException
 *             if an I/O error occurs.
 */
@SuppressWarnings( {
    "unchecked", "unused"
})
protected Enumeration<URL> findResources(String resName) throws IOException {
  return Collections.emptyEnumeration();
}
origin: org.apache.ant/ant

/**
 * Returns an enumeration of the dependencies of this target.
 *
 * @return an enumeration of the dependencies of this target (enumeration of String)
 */
public Enumeration<String> getDependencies() {
  return dependencies == null ? Collections.emptyEnumeration()
    : Collections.enumeration(dependencies);
}
origin: org.apache.ant/ant

/**
 * Returns an enumeration of all child wrappers.
 * @return an enumeration of the child wrappers.
 * @since Ant 1.6
 */
public synchronized Enumeration<RuntimeConfigurable> getChildren() {
  return (children == null) ? Collections.emptyEnumeration()
    : Collections.enumeration(children);
}
origin: jenkinsci/jenkins

@Override
public Enumeration<URL> getResources(String name) throws IOException {
  if (isMasked(name)) return Collections.emptyEnumeration();
  return super.getResources(name);
}
origin: spring-projects/spring-framework

@Override
public Enumeration<String> getAttributeNamesInScope(int scope) {
  switch (scope) {
    case PAGE_SCOPE:
      return getAttributeNames();
    case REQUEST_SCOPE:
      return this.request.getAttributeNames();
    case SESSION_SCOPE:
      HttpSession session = this.request.getSession(false);
      return (session != null ? session.getAttributeNames() : Collections.emptyEnumeration());
    case APPLICATION_SCOPE:
      return this.servletContext.getAttributeNames();
    default:
      throw new IllegalArgumentException("Invalid scope: " + scope);
  }
}
origin: igniterealtime/Openfire

  @Override
  public Enumeration<String> getInitParameterNames()
  {
    final Map<String, String> params = WebXmlUtils.getFilterInitParams( webXmlDoc, filterName );
    if ( params == null || params.isEmpty() )
    {
      return Collections.emptyEnumeration();
    }
    return Collections.enumeration( params.keySet() );
  }
} );
origin: wildfly/wildfly

public Enumeration<Permission> elements() {
  return added ? Collections.enumeration(getSingletonCollection()) : Collections.emptyEnumeration();
}
origin: spring-projects/spring-framework

@Override
public Enumeration<String> getAttributeNamesInScope(int scope) {
  switch (scope) {
    case PAGE_SCOPE:
      return getAttributeNames();
    case REQUEST_SCOPE:
      return this.request.getAttributeNames();
    case SESSION_SCOPE:
      HttpSession session = this.request.getSession(false);
      return (session != null ? session.getAttributeNames() : Collections.emptyEnumeration());
    case APPLICATION_SCOPE:
      return this.servletContext.getAttributeNames();
    default:
      throw new IllegalArgumentException("Invalid scope: " + scope);
  }
}
origin: prestodb/presto

@Override
public Enumeration<String> getHeaders(String name)
{
  for (Map.Entry<String, Collection<String>> entry : headers.asMap().entrySet()) {
    if (entry.getKey().equalsIgnoreCase(name)) {
      return enumeration(entry.getValue());
    }
  }
  return emptyEnumeration();
}
origin: org.apache.ant/ant

base = Collections.emptyEnumeration();
origin: awslabs/aws-serverless-java-container

  @Override
  public Enumeration<String> getInitParameterNames() {
    return Collections.emptyEnumeration();
  }
}
origin: wildfly/wildfly

} else {
  keyStore.load(null, null);
  enumeration = Collections.emptyEnumeration();
origin: com.liferay.portal/com.liferay.portal.kernel

@Override
public Enumeration<String> getKeys() {
  return Collections.emptyEnumeration();
}
origin: wildfly/wildfly

assertFalse(immutability.test(new AtomicLong()));
assertTrue(immutability.test(null));
assertTrue(immutability.test(Collections.emptyEnumeration()));
assertTrue(immutability.test(Collections.emptyIterator()));
assertTrue(immutability.test(Collections.emptyList()));
origin: apache/servicecomb-java-chassis

@Override
public Enumeration<String> getHeaders(String name) {
 List<String> headerValues = httpHeaders.get(name);
 if (headerValues == null || headerValues.isEmpty()) {
  return Collections.emptyEnumeration();
 }
 return Collections.enumeration(headerValues);
}
origin: awslabs/aws-serverless-java-container

@Override
public Enumeration<String> getHeaderNames() {
  if (request.getMultiValueHeaders() == null) {
    return Collections.emptyEnumeration();
  }
  return Collections.enumeration(request.getMultiValueHeaders().keySet());
}
origin: awslabs/aws-serverless-java-container

@Override
public Enumeration<String> getHeaders(String s) {
  if (request.getMultiValueHeaders() == null || request.getMultiValueHeaders().get(s) == null) {
    return Collections.emptyEnumeration();
  }
  return Collections.enumeration(request.getMultiValueHeaders().get(s));
}
java.utilCollectionsemptyEnumeration

Javadoc

Returns an enumeration containing no elements.

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
  • Top plugins for Android Studio
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