# Package com.codename1.util

package com.codename1.util
General utilities classes

- Related Packages
  Package
  Description
  com.codename1.util.promise
  com.codename1.util.regex
  A simple regular expression API that is portable across all platforms
- Class
  Description
  AsyncResource<V>
  A wrapper for an object that needs to be loaded asynchronously.
  AsyncResource.AsyncExecutionException
  Exception to wrap exceptions that are thrown during asynchronous execution.
  AsyncResource.CancellationException
  Exception thrown when the AsyncResource is cancelled.
  AsyncResult<V>
  A callback used by `AsyncResource` to be able to handle both the success and error case in a single method.
  Base64
  This class implements Base64 encoding/decoding functionality as specified in RFC 2045 (http://www.ietf.org/rfc/rfc2045.txt).
  BigDecimal
  Class representing a simple version of a big decimal.
  BigInteger
  A simplified version of big integer from the bouncy castle implementation
  Callback<T>
  Simple interface that allows asynchronous code to perform a parameterized callback or failure in a similar way to GWT's callback interface.
  CallbackAdapter<T>
  Adapter for the {Callback} interface.
  CallbackDispatcher<T>
  A utility class for calling `Callback`s on the EDT.
  CaseInsensitiveOrder
  A string comparator equivalent to String.CASE_INSENSITIVE_ORDER which isn't available in Codename One
  CStringBuilder
  This is generally the Apache String builder class refactored here so we can use it regardless of vm limitations/differences for increased performance.
  DateUtil
  Utility class for working with dates and timezones.
  EasyThread
  An easy API for working with threads similar to call serially/and wait that allows us to create a thread and dispatch tasks to it.
  EasyThread.ErrorListener<T>
  Callback listener for errors on easy thread
  FailureCallback<T>
  Simple interface that allows asynchronous code to perform a parameterized callback in a similar way to GWT's callback interface.
  LazyValue<T>
  Useful when passing a value that might not exist to a function, e.g.
  MathUtil
  MathUtil for Java ME.
  OnComplete<T>
  Invoked when a process is completed, this is a generic interface designed to replace the `SuccessCallback` interface.
  RunnableWithResult<T>
  A Runnable like interface that can return a result possibly asynchronously
  RunnableWithResultSync<T>
  A Runnable like interface that can return a result synchronously
  Simd
  Portable SIMD API with Java fallback implementations.
  StringUtil
  Various utility methods for manipulating strings
  SuccessCallback<T>
  Simple interface that allows asynchronous code to perform a parameterized callback in a similar way to GWT's callback interface.
  Wrapper<T>
  Generic object wrapper, as workaround for the issue "Local variables referenced from a lambda expression must be final or effectively final".