Example usage for Java com.google.common.primitives Chars fields, constructors, methods, implement or subclass
The text is from its open source code.
int | BYTES The number of bytes required to represent a primitive char value. |
List | asList(char... backingArray) Returns a fixed-size list backed by the specified array, similar to Arrays#asList(Object[]) . |
char | checkedCast(long value) Returns the char value that is equal to value , if possible. |
int | compare(char a, char b) Compares the two specified char values. |
boolean | contains(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. |
int | indexOf(char[] array, char target) Returns the index of the first appearance of the value target in array . |
int | indexOf(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. |
char | saturatedCast(long value) Returns the char nearest in value to value . |
char[] | toArray(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() . |