- 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
}
@Override protected String formatTo(final Formatter formatter) { WKTUtilities.appendParamMT(values, formatter); return WKTKeywords.Param_MT; } });
/** * Creates a remarks for parameters that are not formally EPSG parameter. * * @param origin the name of the projection for where the parameter is formally used. * @return a remarks saying that the parameter is actually defined in {@code origin}. */ static InternationalString notFormalParameter(final String origin) { return Resources.formatInternational(Resources.Keys.NotFormalProjectionParameter_1, origin); } }
/** * Returns the factory for Coordinate Operation objects. This method fetches the factory when first needed. */ private DefaultCoordinateOperationFactory getCoordinateOperationFactory() { if (copFactory == null) { copFactory = CoordinateOperations.factory(); } return copFactory; }
/** * Returns resources in the locale specified in the given property map. This convenience method looks * for the {@link #LOCALE_KEY} entry. If the given map is null, or contains no entry for the locale key, * or the value is not an instance of {@link Locale}, then this method fallback on the default locale. * * @param properties the map of properties, or {@code null} if none. * @return resources in the given locale. * @throws MissingResourceException if resources can't be found. */ public static Resources forProperties(final Map<?,?> properties) throws MissingResourceException { return forLocale(getLocale(properties)); }
/** Creates a new temporary ellipsoid with explicitely provided Δa and Δf values. */ Ellipsoid(Map<String,?> name, double a, double b, double Δa, double Δf) { super(name, a, b, Formulas.getInverseFlattening(a, b), false, Units.METRE); this.Δa = Δa; this.Δf = Δf; }
/** * Tests if this set has no element. * * @return {@code true} if this set has no element. */ @Override public final boolean isEmpty() { return (numCached == 0) && !canPullMore(); }
/** * Gets an international string for the given key. This method does not check for the key * validity. If the key is invalid, then a {@link MissingResourceException} may be thrown * when a {@link InternationalString#toString(Locale)} method is invoked. * * @param key the key for the desired string. * @return an international string for the given key. */ public static InternationalString formatInternational(final short key) { return new International(key); }
/** * Returns resources in the given locale. * * @param locale the locale, or {@code null} for the default locale. * @return resources in the given locale. * @throws MissingResourceException if resources can't be found. */ public static Resources forLocale(final Locale locale) throws MissingResourceException { return getBundle(Resources.class, locale); }
/** * Returns the coordinate system of a geocentric CRS using axes in the given unit of measurement. * * @param linearUnit the unit of measurement for the geocentric CRS axes. * @return the coordinate system for a geocentric CRS with axes using the given unit of measurement. * * @since 0.6 */ @Override public CartesianCS getGeocentricCS(final Unit<Length> linearUnit) { return Legacy.standard(linearUnit); }
/** * Formats this group as a pseudo-<cite>Well Known Text</cite> element. * * @param formatter the formatter where to format the inner content of this WKT element. * @return {@code "ParameterGroup"}. */ @Override protected String formatTo(final Formatter formatter) { WKTUtilities.appendParamMT(this, formatter); return WKTKeywords.ParameterGroup; } }
/** * Returns a human-readable text for this constant. * * @param locale the desired locale, or {@code null}. * @return a human-readable text in the given locale if possible. */ @Override public String toString(final Locale locale) { return Resources.forLocale(locale).getString(opposite ? Resources.Keys.InverseOperationUsesOppositeSign : Resources.Keys.InverseOperationUsesSameSign); }
/** * Tests if this set has no element. * * @return {@code true} if this set has no element. */ @Override public final boolean isEmpty() { return (numCached == 0) && !canPullMore(); }
/** * Gets an international string for the given key. This method does not check for the key * validity. If the key is invalid, then a {@link MissingResourceException} may be thrown * when a {@link InternationalString#toString(Locale)} method is invoked. * * @param key the key for the desired string. * @return an international string for the given key. */ public static InternationalString formatInternational(final short key) { return new International(key); }
/** * Returns resources in the given locale. * * @param locale the locale, or {@code null} for the default locale. * @return resources in the given locale. * @throws MissingResourceException if resources can't be found. */ public static Resources forLocale(final Locale locale) throws MissingResourceException { return getBundle(Resources.class, locale); }
/** * Returns the coordinate system of a geocentric CRS using axes in the given unit of measurement. * * @param linearUnit the unit of measurement for the geocentric CRS axes. * @return the coordinate system for a geocentric CRS with axes using the given unit of measurement. * * @since 0.6 */ @Override public CartesianCS getGeocentricCS(final Unit<Length> linearUnit) { return Legacy.standard(linearUnit); }
@Override protected String formatTo(final Formatter formatter) { WKTUtilities.appendParamMT(parameters, formatter); return WKTKeywords.Param_MT; } };
/** * Gets a string for the given key from this resource bundle or one of its parents. * * @param key the key for the desired string. * @return the string for the given key. * @throws MissingResourceException if no object for the given key can be found. */ public static String format(final short key) throws MissingResourceException { return forLocale(null).getString(key); }
/** * Returns {@code true} if an element exists at the given index. * The element is not loaded immediately. * * <p><strong>NOTE: This method is for use by iterators only.</strong> * It is not suited for more general usage since it does not check for * negative index and for skipped elements.</p> */ final boolean exists(final int index) { assert index <= numCached : index; return (index < numCached) || canPullMore(); }