Codota Logo
ValueStringIgnoreCase
Code IndexAdd Codota to your IDE (free)

How to use
ValueStringIgnoreCase
in
org.lealone.db.value

Best Java code snippets using org.lealone.db.value.ValueStringIgnoreCase (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: lealone/Lealone

@Override
protected ValueString getNew(String s) {
  return ValueStringIgnoreCase.get(s);
}
origin: lealone/Lealone

/**
 * Get or create a case insensitive string value for the given string.
 * The value will have the same case as the passed string.
 *
 * @param s the string
 * @return the value
 */
public static ValueStringIgnoreCase get(String s) {
  if (s.length() == 0) {
    return EMPTY;
  }
  ValueStringIgnoreCase obj = new ValueStringIgnoreCase(StringUtils.cache(s));
  if (s.length() > SysProperties.OBJECT_CACHE_MAX_PER_ELEMENT_SIZE) {
    return obj;
  }
  ValueStringIgnoreCase cache = (ValueStringIgnoreCase) Value.cache(obj);
  // the cached object could have the wrong case
  // (it would still be 'equal', but we don't like to store it)
  if (cache.value.equals(s)) {
    return cache;
  }
  return obj;
}
origin: lealone/Lealone

v = (s == null) ? (Value) ValueNull.INSTANCE : ValueStringIgnoreCase.get(s);
break;
origin: lealone/Lealone

private boolean checkIndex(ServerSession session, String value, Value indexFrom, Value indexTo) {
  if (value == null || (indexFrom == null && indexTo == null)) {
    return true;
  }
  Database db = session.getDatabase();
  if (database.getMode().lowerCaseIdentifiers) {
    Value v = ValueStringIgnoreCase.get(value);
    if (indexFrom.equals(indexTo) && db.compare(v, indexFrom) != 0) {
      return false;
    }
  } else {
    Value v = ValueString.get(value);
    if (indexFrom != null && db.compare(v, indexFrom) < 0) {
      return false;
    }
    if (indexTo != null && db.compare(v, indexTo) > 0) {
      return false;
    }
  }
  return true;
}
origin: lealone/Lealone

  return ValueString.get(s);
case STRING_IGNORECASE:
  return ValueStringIgnoreCase.get(s);
case STRING_FIXED:
  return ValueStringFixed.get(s);
origin: lealone/Lealone

  return ValueStringIgnoreCase.get(readString(buff));
case Value.STRING_FIXED:
  return ValueStringFixed.get(readString(buff));
origin: lealone/Lealone

  return ValueString.get(readString());
case Value.STRING_IGNORECASE:
  return ValueStringIgnoreCase.get(readString());
case Value.STRING_FIXED:
  return ValueStringFixed.get(readString());
org.lealone.db.valueValueStringIgnoreCase

Javadoc

Implementation of the VARCHAR_IGNORECASE data type.

Most used methods

  • get
    Get or create a case insensitive string value for the given string. The value will have the same cas
  • <init>

Popular in Java

  • Making http requests using okhttp
  • addToBackStack (FragmentTransaction)
  • getExternalFilesDir (Context)
  • requestLocationUpdates (LocationManager)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Menu (java.awt)
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now