Top Description Fields Constructors Methods
com.google.common.escape

pack-priv final Class Platform

extends Object
Class Inheritance
Annotations
@GwtCompatible
emulated:true
@ElementTypesAreNonnullByDefault
Static Imports
java.util.Objects.requireNonNull

Methods factored out so that they can be emulated differently in GWT.
Author
Jesse Wilson

Field Summary

Modifier and TypeField and Description
private static final ThreadLocal<char[]>
DEST_TL

A thread-local destination buffer to keep us from creating new buffers.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static char[]
charBufferFromThreadLocal()

Returns a thread-local 1024-char array.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DEST_TLback to summary
private static final ThreadLocal<char[]> DEST_TL

A thread-local destination buffer to keep us from creating new buffers. The starting size is 1024 characters. If we grow past this we don't put it back in the threadlocal, we just keep going and grow as needed.

Constructor Detail

Platformback to summary
private Platform()

Method Detail

charBufferFromThreadLocalback to summary
pack-priv static char[] charBufferFromThreadLocal()

Returns a thread-local 1024-char array.