public interface JdkHelper
| Modifier and Type | Method and Description |
|---|---|
long |
getThreadId(Thread currentThread)
return an ID for current thread
|
boolean |
isInterfaceUp(NetworkInterface iface)
Returns true if the given
NetworkInterface is up. |
Byte |
newByte(byte value)
return a Byte object for given value
|
Character |
newCharacter(char value)
return a Characted object for given value
|
Map |
newConcurrentMap(int initialCapacity,
int concurrencyLevel)
return a
Map implementation for concurrent usage |
Integer |
newInteger(int value)
return an Integer object for given value
|
Long |
newLong(long value)
return a Long object for given value
|
Short |
newShort(short value)
return a Short object for given value
|
String |
newWrappedString(char[] chars,
int offset,
int size)
Wrap the given array of character as a String avoiding copying if possible.
|
String |
readChars(InputStream in,
boolean noecho)
reads characters without the trailing newline from standard input in case a
console is available else reading from the given input stream
|
Map newConcurrentMap(int initialCapacity, int concurrencyLevel)
Map implementation for concurrent usagelong getThreadId(Thread currentThread)
Byte newByte(byte value)
Short newShort(short value)
Integer newInteger(int value)
Long newLong(long value)
Character newCharacter(char value)
String readChars(InputStream in, boolean noecho)
String newWrappedString(char[] chars, int offset, int size)
boolean isInterfaceUp(NetworkInterface iface) throws SocketException
NetworkInterface is up.SocketExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.