- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {ScheduledThreadPoolExecutor s =
new ScheduledThreadPoolExecutor(corePoolSize)
ThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
String str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
- Smart code suggestions by Codota
}
private SingleValue<?> parseTypedLiteral( OMElement typedLiteralType ) { if ( typedLiteralType == null ) { return null; } String type = typedLiteralType.getAttributeValue( new QName( "type" ) ); String value = typedLiteralType.getText(); return SingleValue.createFromString( type, value ); }
private final static SingleValue<?> mapTT( TypedType tt ) { if ( tt == null ) { return null; } return SingleValue.createFromString( tt.getType(), tt.getValue() ); }
for ( String sv : split ) { if ( sv != null ) { singleValues.add( SingleValue.createFromString( ValueType.Void.name(), sv ) );
/** * Get the interval defined by the given String. * * @param interval * @return */ private static Interval<?, ?> parseInterval( String interval, ValueType type ) { Interval<?, ?> result = null; String[] split = interval.split( "/" ); if ( split.length == 2 || split.length == 3 ) { // should be min/max/res String min = split[0]; String max = split[1]; String res = null; if ( split.length == 3 ) { res = split[2]; } SingleValue<?> spacing = res == null ? null : SingleValue.createFromString( ValueType.Void.name(), res ); result = Interval.createFromStrings( type.toString(), min, max, Closure.closed, null, false, spacing ); } else { LOG.warn( "Given intervall: " + interval + " has not enough values, maybe a default value is ment?" ); } return result; }
SingleValue<?> origSingle = it.next(); if ( origSingle != null ) { SingleValue<?> converted = SingleValue.createFromString( type, origSingle.value.toString() );
tmpInter.getSpacing() ); } else if ( sv.type == ValueType.Void ) { sv = SingleValue.createFromString( min.type.toString(), sv.value.toString() ); } else { continue;