Java Code Examples for com.jstarcraft.core.utility.StringUtility#COLON
The following examples show how to use
com.jstarcraft.core.utility.StringUtility#COLON .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JavaEnvironmentThreadFactory.java From jstarcraft-ai with Apache License 2.0 | 5 votes |
@Override public Thread newThread(Runnable runnable) { int index = number.getAndIncrement(); String name = group.getName() + StringUtility.COLON + index; Thread thread = new JavaEnvironmentThread(context, group, runnable, name, 0); return thread; }
Example 2
Source File: Nd4jEnvironmentThreadFactory.java From jstarcraft-ai with Apache License 2.0 | 5 votes |
@Override public Thread newThread(Runnable runnable) { int index = number.getAndIncrement(); String name = group.getName() + StringUtility.COLON + index; Thread thread = new Nd4jEnvironmentThread(context, group, runnable, name, 0); manager.attachThreadToDevice(thread, index % manager.getNumberOfDevices()); return thread; }
Example 3
Source File: SessionManager.java From jstarcraft-core with Apache License 2.0 | 4 votes |
static String address2Key(InetSocketAddress address) { String key = address.getAddress().getHostAddress() + StringUtility.COLON + address.getPort(); return key; }