Java com.google.common.primitives Chars fields, constructors, methods, implement or subclass

Example usage for Java com.google.common.primitives Chars fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.common.primitives Chars.

The text is from its open source code.

Field

intBYTES
The number of bytes required to represent a primitive char value.

Method

ListasList(char... backingArray)
Returns a fixed-size list backed by the specified array, similar to Arrays#asList(Object[]) .
charcheckedCast(long value)
Returns the char value that is equal to value , if possible.
intcompare(char a, char b)
Compares the two specified char values.
booleancontains(char[] array, char target)
Returns true if target is present as an element anywhere in array .
char[]ensureCapacity(char[] array, int minLength, int padding)
Returns an array containing the same values as array , but guaranteed to be of a specified minimum length.
intindexOf(char[] array, char target)
Returns the index of the first appearance of the value target in array .
intindexOf(char[] array, char[] target)
Returns the start position of the first occurrence of the specified target within array , or -1 if there is no such occurrence.
charsaturatedCast(long value)
Returns the char nearest in value to value .
char[]toArray(Collection collection)
Copies a collection of Character instances into a new array of primitive char values.
byte[]toByteArray(char value)
Returns a big-endian representation of value in a 2-element byte array; equivalent to ByteBuffer.allocate(2).putChar(value).array() .