Tabnine Logo
UnsafeInternal
Code IndexAdd Tabnine to your IDE (free)

How to use
UnsafeInternal
in
jodd.util

Best Java code snippets using jodd.util.UnsafeInternal (Showing top 2 results out of 315)

origin: oblac/jodd

/**
 * Returns String characters in most performing way.
 * If possible, the inner <code>char[]</code> will be returned.
 * If not, <code>toCharArray()</code> will be called.
 * Returns <code>null</code> when argument is <code>null</code>.
 */
public static char[] getChars(final String string) {
  if (string == null) {
    return null;
  }
  if (!HAS_UNSAFE || !JoddCore.unsafeUsageEnabled) {
    return string.toCharArray();
  }
  return UnsafeInternal.unsafeGetChars(string);
}
origin: org.jodd/jodd-core

/**
 * Returns String characters in most performing way.
 * If possible, the inner <code>char[]</code> will be returned.
 * If not, <code>toCharArray()</code> will be called.
 * Returns <code>null</code> when argument is <code>null</code>.
 */
public static char[] getChars(final String string) {
  if (string == null) {
    return null;
  }
  if (!HAS_UNSAFE || !JoddCore.unsafeUsageEnabled) {
    return string.toCharArray();
  }
  return UnsafeInternal.unsafeGetChars(string);
}
jodd.utilUnsafeInternal

Javadoc

Simplified netty class. Thanx: Stephane Landelle!

Most used methods

  • unsafeGetChars

Popular in Java

  • Updating database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • getSharedPreferences (Context)
  • requestLocationUpdates (LocationManager)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • From CI to AI: The AI layer in your organization
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