Tabnine Logo
StrLookup.noneLookup
Code IndexAdd Tabnine to your IDE (free)

How to use
noneLookup
method
in
org.apache.commons.lang.text.StrLookup

Best Java code snippets using org.apache.commons.lang.text.StrLookup.noneLookup (Showing top 4 results out of 315)

origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-configuration

/**
 * Obtains the lookup object for the specified prefix. This method is called
 * by the {@code lookup()} method. This implementation will check
 * whether a lookup object is registered for the given prefix. If not, a
 * <b>null</b> lookup object will be returned (never <b>null</b>).
 *
 * @param prefix the prefix
 * @return the lookup object to be used for this prefix
 */
protected StrLookup fetchLookupForPrefix(String prefix)
{
  StrLookup lookup = localLookups.get(prefix);
  if (lookup == null)
  {
    lookup = StrLookup.noneLookup();
  }
  return lookup;
}
origin: org.apache.commons/org.motechproject.org.apache.commons.configuration

/**
 * Obtains the lookup object for the specified prefix. This method is called
 * by the {@code lookup()} method. This implementation will check
 * whether a lookup object is registered for the given prefix. If not, a
 * <b>null</b> lookup object will be returned (never <b>null</b>).
 *
 * @param prefix the prefix
 * @return the lookup object to be used for this prefix
 */
protected StrLookup fetchLookupForPrefix(String prefix)
{
  StrLookup lookup = localLookups.get(prefix);
  if (lookup == null)
  {
    lookup = StrLookup.noneLookup();
  }
  return lookup;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-configuration

/**
 * Returns the lookup object to be used for variables without a prefix. This
 * implementation will check whether a default lookup object was set. If
 * this is the case, it will be returned. Otherwise a <b>null</b> lookup
 * object will be returned (never <b>null</b>).
 *
 * @return the lookup object to be used for variables without a prefix
 */
protected StrLookup fetchNoPrefixLookup()
{
  return (getDefaultLookup() != null) ? getDefaultLookup() : StrLookup.noneLookup();
}
origin: org.apache.commons/org.motechproject.org.apache.commons.configuration

/**
 * Returns the lookup object to be used for variables without a prefix. This
 * implementation will check whether a default lookup object was set. If
 * this is the case, it will be returned. Otherwise a <b>null</b> lookup
 * object will be returned (never <b>null</b>).
 *
 * @return the lookup object to be used for variables without a prefix
 */
protected StrLookup fetchNoPrefixLookup()
{
  return (getDefaultLookup() != null) ? getDefaultLookup() : StrLookup.noneLookup();
}
org.apache.commons.lang.textStrLookupnoneLookup

Javadoc

Returns a lookup which always returns null.

Popular methods of StrLookup

  • lookup
    Looks up a String key to a String value. The internal implementation may use any mechanism to return
  • mapLookup
    Returns a lookup which looks up values using a map. If the map is null, then null will be returned f
  • systemPropertiesLookup
    Returns a lookup which uses System#getProperties()to lookup the key to value. If a security manager

Popular in Java

  • Parsing JSON documents to java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSupportFragmentManager (FragmentActivity)
  • putExtra (Intent)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Top Sublime Text 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