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

How to use
unsafeGetChars
method
in
jodd.util.UnsafeInternal

Best Java code snippets using jodd.util.UnsafeInternal.unsafeGetChars (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.utilUnsafeInternalunsafeGetChars

Popular methods of UnsafeInternal

    Popular in Java

    • Reactive rest calls using spring rest template
    • getSystemService (Context)
    • scheduleAtFixedRate (Timer)
    • getApplicationContext (Context)
    • InputStreamReader (java.io)
      A class for turning a byte stream into a character stream. Data read from the source input stream is
    • Iterator (java.util)
      An iterator over a sequence of objects, such as a collection.If a collection has been changed since
    • Queue (java.util)
      A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
    • UUID (java.util)
      UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
    • Stream (java.util.stream)
      A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
    • Project (org.apache.tools.ant)
      Central representation of an Ant project. This class defines an Ant project with all of its targets,
    • Top PhpStorm 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