Tabnine Logo
ParameterList.getIntParameter
Code IndexAdd Tabnine to your IDE (free)

How to use
getIntParameter
method
in
javax.media.jai.ParameterList

Best Java code snippets using javax.media.jai.ParameterList.getIntParameter (Showing top 3 results out of 315)

origin: geotools/geotools

/** Returns the positive integer value of an operation parameter. */
public int intValue() throws InvalidParameterTypeException {
  final String name = getName();
  final Class type = getType();
  try {
    if (type.equals(Short.class)) parameters.getShortParameter(name);
    if (type.equals(Byte.class)) parameters.getByteParameter(name);
    return parameters.getIntParameter(name);
  } catch (ClassCastException exception) {
    throw invalidType(exception);
  }
}
origin: geotools/geotools

/** Returns the numeric value of the coordinate operation parameter. */
public double doubleValue() throws InvalidParameterTypeException {
  final String name = getName();
  final Class type = getType();
  try {
    if (type.equals(Float.class)) parameters.getFloatParameter(name);
    if (type.equals(Long.class)) parameters.getLongParameter(name);
    if (type.equals(Integer.class)) parameters.getIntParameter(name);
    if (type.equals(Short.class)) parameters.getShortParameter(name);
    if (type.equals(Byte.class)) parameters.getByteParameter(name);
    return parameters.getDoubleParameter(name);
  } catch (ClassCastException exception) {
    throw invalidType(exception);
  }
}
origin: geotools/geotools

assertSame(pl, pl.setParameter("xPeriod", 2));
assertSame(pl, pl.setParameter("yPeriod", 2));
assertEquals(2, pl.getIntParameter("xPeriod"));
assertEquals(2, pl.getIntParameter("yPeriod"));
assertEquals(
    "Setting 'xPeriod' on ParameterList should have no effect on ParameterValue.",
javax.media.jaiParameterListgetIntParameter

Popular methods of ParameterList

  • getObjectParameter
  • setParameter
  • getParameterListDescriptor
  • getBooleanParameter
  • getByteParameter
  • getDoubleParameter
  • getFloatParameter
  • getLongParameter
  • getShortParameter

Popular in Java

  • Start an intent from android
  • onRequestPermissionsResult (Fragment)
  • runOnUiThread (Activity)
  • getSystemService (Context)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Permission (java.security)
    Legacy security code; do not use.
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now