blob: 2e1284fed537e4c164b50308074428f61b75a4a1 [file] [log] [blame]
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.4) on Fri Sep 20 12:10:30 CEST 2019 -->
<title>DefaultParameterValue (Apache SIS 1.0 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2019-09-20">
<meta name="keywords" content="org.apache.sis.parameter.DefaultParameterValue class">
<meta name="keywords" content="value">
<meta name="keywords" content="unit">
<meta name="keywords" content="getDescriptor()">
<meta name="keywords" content="getUnit()">
<meta name="keywords" content="getValue()">
<meta name="keywords" content="booleanValue()">
<meta name="keywords" content="intValue()">
<meta name="keywords" content="intValueList()">
<meta name="keywords" content="doubleValue()">
<meta name="keywords" content="doubleValueList()">
<meta name="keywords" content="stringValue()">
<meta name="keywords" content="valueFile()">
<meta name="keywords" content="setValue()">
<meta name="keywords" content="validate()">
<meta name="keywords" content="equals()">
<meta name="keywords" content="hashCode()">
<meta name="keywords" content="clone()">
<meta name="keywords" content="unmodifiable()">
<meta name="keywords" content="formatTo()">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../sis.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../jquery/jquery-3.3.1.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-migrate-3.0.1.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="DefaultParameterValue (Apache SIS 1.0 API)";
}
}
catch(err) {
}
//-->
var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":9,"i24":10,"i25":10};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../";
var useModuleDirectories = false;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/DefaultParameterValue.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<!-- ======== START OF CLASS DATA ======== -->
<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">org.apache.sis.parameter</a></div>
<h2 title="Class DefaultParameterValue" class="title">Class DefaultParameterValue&lt;T&gt;</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a></li>
<li>
<ul class="inheritance">
<li><a href="../io/wkt/FormattableObject.html" title="class in org.apache.sis.io.wkt">FormattableObject</a></li>
<li>
<ul class="inheritance">
<li>DefaultParameterValue&lt;T&gt;</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - the type of the value stored in this parameter.</dd>
</dl>
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io" class="externalLink">Serializable</a></code>, <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Cloneable</a></code>, <code><a href="../util/LenientComparable.html" title="interface in org.apache.sis.util">Lenient­Comparable</a></code>, <code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/GeneralParameterValue.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">General­Parameter­Value</a></code>, <code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Parameter­Value</a>&lt;T&gt;</code></dd>
</dl>
<hr>
<pre>public class <span class="typeNameLabel">DefaultParameterValue&lt;T&gt;</span>
extends <a href="../io/wkt/FormattableObject.html" title="class in org.apache.sis.io.wkt">FormattableObject</a>
implements <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">ParameterValue</a>&lt;T&gt;, <a href="../util/LenientComparable.html" title="interface in org.apache.sis.util">LenientComparable</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io" class="externalLink">Serializable</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang" class="externalLink">Cloneable</a></pre>
<div class="block">A single parameter value used by an operation method. <code>Parameter­Value</code> instances are elements in
a <a href="DefaultParameterValueGroup.html" title="class in org.apache.sis.parameter">parameter value group</a>, in a way similar to <code>Map​.Entry</code>
instances in a <code>java​.util​.Map</code>.
<p>In the context of coordinate operations, most parameter values are numeric and can be obtained by the
<a href="#intValue()"><code>int­Value()</code></a> or <a href="#doubleValue()"><code>double­Value()</code></a> methods. But other types of parameter values are possible
and can be handled by the more generic <a href="#getValue()"><code>get­Value()</code></a> and <a href="#setValue(java.lang.Object)"><code>set­Value(Object)</code></a> methods.
All <code>xxx­Value()</code> methods in this class are convenience methods converting the value from <code>Object</code>
to some commonly used types. Those types are specified in ISO 19111 as an union of attributes, listed below with
the corresponding getter and setter methods:</p>
<table class="sis">
<caption>Mapping from ISO attributes to getters and setters</caption>
<tr><th>ISO attribute</th> <th>Java type</th> <th>Getter method</th> <th>Setter method</th></tr>
<tr><td></td> <td><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink"><code>Object</code></a></td> <td><a href="#getValue()"><code>getValue()</code></a></td> <td><a href="#setValue(java.lang.Object)"><code>setValue(Object)</code></a></td></tr>
<tr><td>stringValue</td> <td><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink"><code>String</code></a></td> <td><a href="#stringValue()"><code>stringValue()</code></a></td> <td><a href="#setValue(java.lang.Object)"><code>setValue(Object)</code></a></td></tr>
<tr><td>value</td> <td><code>double</code></td> <td><a href="#doubleValue()"><code>doubleValue()</code></a></td> <td><a href="#setValue(double)"><code>setValue(double)</code></a></td></tr>
<tr><td></td> <td><code>double</code></td> <td><a href="#doubleValue(javax.measure.Unit)"><code>doubleValue(Unit)</code></a></td> <td><a href="#setValue(double,javax.measure.Unit)"><code>setValue(double, Unit)</code></a></td></tr>
<tr><td>valueList</td> <td><code>double[]</code></td> <td><a href="#doubleValueList()"><code>doubleValueList()</code></a></td> <td><a href="#setValue(java.lang.Object)"><code>setValue(Object)</code></a></td></tr>
<tr><td></td> <td><code>double[]</code></td> <td><a href="#doubleValueList(javax.measure.Unit)"><code>doubleValueList(Unit)</code></a></td> <td><a href="#setValue(double%5B%5D,javax.measure.Unit)"><code>setValue(double[], Unit)</code></a></td></tr>
<tr><td>integerValue</td> <td><code>int</code></td> <td><a href="#intValue()"><code>intValue()</code></a></td> <td><a href="#setValue(int)"><code>setValue(int)</code></a></td></tr>
<tr><td>integerValueList</td> <td><code>int[]</code></td> <td><a href="#intValueList()"><code>intValueList()</code></a></td> <td><a href="#setValue(java.lang.Object)"><code>setValue(Object)</code></a></td></tr>
<tr><td>booleanValue</td> <td><code>boolean</code></td> <td><a href="#booleanValue()"><code>booleanValue()</code></a></td> <td><a href="#setValue(boolean)"><code>setValue(boolean)</code></a></td></tr>
<tr><td>valueFile</td> <td><a href="https://docs.oracle.com/javase/8/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net" class="externalLink"><code>URI</code></a></td> <td><a href="#valueFile()"><code>valueFile()</code></a></td> <td><a href="#setValue(java.lang.Object)"><code>setValue(Object)</code></a></td></tr>
<tr><td>valueFileCitation</td> <td><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/metadata/citation/Citation.html?is-external=true" title="class or interface in org.opengis.metadata.citation" class="externalLink"><code>Citation</code></a></td> <td><a href="#getValue()"><code>getValue()</code></a></td> <td><a href="#setValue(java.lang.Object)"><code>setValue(Object)</code></a></td></tr>
</table>
The type and constraints on parameter values are given by the <a href="#getDescriptor()">descriptor</a>,
which is specified at construction time. The parameter type can be fetch with the following idiom:
<blockquote><pre>Class&lt;T&gt; valueClass = parameter.<b>getDescriptor</b>().<b>getValueClass</b>();</pre></blockquote>
<div class="section">Instantiation</div>
A <a href="DefaultParameterDescriptor.html" title="class in org.apache.sis.parameter">parameter descriptor</a> must be defined before parameter value can be created.
Descriptors are usually pre-defined by map projection or process providers. Given a descriptor, a parameter value can
be created by a call to the <a href="#%3Cinit%3E(org.opengis.parameter.ParameterDescriptor)"><code>Default­Parameter­Value(Parameter­Descriptor)</code></a> constructor or by a call to the
<a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterDescriptor.html?is-external=true#createValue()" title="class or interface in org.opengis.parameter" class="externalLink"><code>Parameter­Descriptor​.create­Value()</code></a> method. The later is recommended since it allows descriptors to return
specialized implementations.
<div class="section">Implementation note for subclasses</div>
All read and write operations (except constructors, <a href="#equals(java.lang.Object)"><code>equals(Object)</code></a> and <a href="#hashCode()"><code>hash­Code()</code></a>)
ultimately delegates to the following methods:
<ul>
<li>All getter methods will invoke <a href="#getValue()"><code>get­Value()</code></a> and <a href="#getUnit()"><code>get­Unit()</code></a> (if needed),
then perform their processing on the values returned by those methods.</li>
<li>All setter methods delegate to the <a href="#setValue(java.lang.Object,javax.measure.Unit)"><code>set­Value(Object, Unit)</code></a> method.</li>
</ul>
Consequently, the above-cited methods provide single points that subclasses can override
for modifying the behavior of all getter and setter methods.</div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>0.4</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="DefaultParameterDescriptor.html" title="class in org.apache.sis.parameter"><code>Default­Parameter­Descriptor</code></a>,
<a href="DefaultParameterValueGroup.html" title="class in org.apache.sis.parameter"><code>Default­Parameter­Value­Group</code></a>,
<a href="../../../../serialized-form.html#org.apache.sis.parameter.DefaultParameterValue">Serialized Form</a></dd>
<p><font size="-1">Defined in the <code>sis-referencing</code> module</font></p>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Field</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/Unit.html?is-external=true" title="class or interface in javax.measure" class="externalLink">Unit</a>&lt;?&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#unit">unit</a></span></code></th>
<td class="colLast">
<div class="block">The unit of measure for the value, or <code>null</code> if it does not apply.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#value">value</a></span></code></th>
<td class="colLast">
<div class="block">The value, or <code>null</code> if undefined.</div>
</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(org.opengis.parameter.ParameterDescriptor)">DefaultParameterValue</a></span>&#8203;(<a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterDescriptor.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">ParameterDescriptor</a>&lt;<a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a>&gt;&nbsp;descriptor)</code></th>
<td class="colLast">
<div class="block">Creates a parameter value from the specified descriptor.</div>
</td>
</tr>
<tr class="rowColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(org.opengis.parameter.ParameterValue)">DefaultParameterValue</a></span>&#8203;(<a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">ParameterValue</a>&lt;<a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a>&gt;&nbsp;parameter)</code></th>
<td class="colLast">
<div class="block">Creates a new instance initialized with the values from the specified parameter object.</div>
</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- ========== METHOD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#booleanValue()">booleanValue</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the boolean value of this parameter.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="DefaultParameterValue.html" title="class in org.apache.sis.parameter">DefaultParameterValue</a>&lt;<a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#clone()">clone</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns a clone of this parameter value.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>double</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#doubleValue()">doubleValue</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the numeric value of this parameter.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>double</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#doubleValue(javax.measure.Unit)">doubleValue</a></span>&#8203;(<a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/Unit.html?is-external=true" title="class or interface in javax.measure" class="externalLink">Unit</a>&lt;?&gt;&nbsp;unit)</code></th>
<td class="colLast">
<div class="block">Returns the numeric value of this parameter in the given unit of measure.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>double[]</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#doubleValueList()">doubleValueList</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns an ordered sequence of two or more numeric values of this parameter,
where each value has the same associated unit of measure.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>double[]</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#doubleValueList(javax.measure.Unit)">doubleValueList</a></span>&#8203;(<a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/Unit.html?is-external=true" title="class or interface in javax.measure" class="externalLink">Unit</a>&lt;?&gt;&nbsp;unit)</code></th>
<td class="colLast">
<div class="block">Returns an ordered sequence of numeric values in the specified unit of measure.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#equals(java.lang.Object)">equals</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a>&nbsp;object)</code></th>
<td class="colLast">
<div class="block">Compares the specified object with this parameter for equality.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#equals(java.lang.Object,org.apache.sis.util.ComparisonMode)">equals</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a>&nbsp;object,
<a href="../util/ComparisonMode.html" title="enum in org.apache.sis.util">ComparisonMode</a>&nbsp;mode)</code></th>
<td class="colLast">
<div class="block">Compares the specified object with this parameter for equality.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>protected <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#formatTo(org.apache.sis.io.wkt.Formatter)">formatTo</a></span>&#8203;(<a href="../io/wkt/Formatter.html" title="class in org.apache.sis.io.wkt">Formatter</a>&nbsp;formatter)</code></th>
<td class="colLast">
<div class="block">Formats this parameter as a <cite>Well Known Text</cite> <code>Parameter[…]</code> element.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterDescriptor.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">ParameterDescriptor</a>&lt;<a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDescriptor()">getDescriptor</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the definition of this parameter.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code><a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/Unit.html?is-external=true" title="class or interface in javax.measure" class="externalLink">Unit</a>&lt;?&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getUnit()">getUnit</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the unit of measure of the parameter value.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code><a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getValue()">getValue</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the parameter value as an object.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#hashCode()">hashCode</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns a hash value for this parameter.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#intValue()">intValue</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the integer value of this parameter, usually used for a count.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>int[]</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#intValueList()">intValueList</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns an ordered sequence of two or more integer values of this parameter, usually used for counts.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setValue(boolean)">setValue</a></span>&#8203;(boolean&nbsp;newValue)</code></th>
<td class="colLast">
<div class="block">Sets the parameter value as a boolean.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setValue(double)">setValue</a></span>&#8203;(double&nbsp;newValue)</code></th>
<td class="colLast">
<div class="block">Sets the parameter value as a floating point.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setValue(double%5B%5D,javax.measure.Unit)">setValue</a></span>&#8203;(double[]&nbsp;newValues,
<a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/Unit.html?is-external=true" title="class or interface in javax.measure" class="externalLink">Unit</a>&lt;?&gt;&nbsp;unit)</code></th>
<td class="colLast">
<div class="block">Sets the parameter value as an array of floating point and their associated unit.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setValue(double,javax.measure.Unit)">setValue</a></span>&#8203;(double&nbsp;newValue,
<a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/Unit.html?is-external=true" title="class or interface in javax.measure" class="externalLink">Unit</a>&lt;?&gt;&nbsp;unit)</code></th>
<td class="colLast">
<div class="block">Sets the parameter value as a floating point and its associated unit.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setValue(int)">setValue</a></span>&#8203;(int&nbsp;newValue)</code></th>
<td class="colLast">
<div class="block">Sets the parameter value as an integer.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setValue(java.lang.Object)">setValue</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a>&nbsp;newValue)</code></th>
<td class="colLast">
<div class="block">Sets the parameter value as an object.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setValue(java.lang.Object,javax.measure.Unit)">setValue</a></span>&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a>&nbsp;newValue,
<a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/Unit.html?is-external=true" title="class or interface in javax.measure" class="externalLink">Unit</a>&lt;?&gt;&nbsp;unit)</code></th>
<td class="colLast">
<div class="block">Sets the parameter value and its associated unit.</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#stringValue()">stringValue</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the string value of this parameter.</div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="DefaultParameterValue.html" title="class in org.apache.sis.parameter">DefaultParameterValue</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#unmodifiable(org.opengis.parameter.ParameterValue)">unmodifiable</a></span>&#8203;(<a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">ParameterValue</a>&lt;T&gt;&nbsp;parameter)</code></th>
<td class="colLast">
<div class="block">Returns an unmodifiable implementation of the given parameter value.</div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code>protected void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#validate(T)">validate</a></span>&#8203;(<a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a>&nbsp;newValue)</code></th>
<td class="colLast">
<div class="block">Invoked by <a href="#setValue(java.lang.Object,javax.measure.Unit)"><code>set­Value(Object, Unit)</code></a> after the basic verifications have been done and before
the value is stored.</div>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net" class="externalLink">URI</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#valueFile()">valueFile</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns a reference to a file or a part of a file containing one or more parameter values.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.FormattableObject">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;<a href="../io/wkt/FormattableObject.html" title="class in org.apache.sis.io.wkt">FormattableObject</a></h3>
<code><a href="../io/wkt/FormattableObject.html#print()">print</a>, <a href="../io/wkt/FormattableObject.html#toString()">to­String</a>, <a href="../io/wkt/FormattableObject.html#toString(org.apache.sis.io.wkt.Convention)">to­String</a>, <a href="../io/wkt/FormattableObject.html#toWKT()">to­WKT</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a></h3>
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang" class="externalLink">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang" class="externalLink">get­Class</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang" class="externalLink">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang" class="externalLink">notify­All</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait(long,int)" title="class or interface in java.lang" class="externalLink">wait</a></code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a id="value">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>value</h4>
<pre>protected&nbsp;<a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a> value</pre>
<div class="block">The value, or <code>null</code> if undefined.
Except for the constructors, the <a href="#equals(java.lang.Object)"><code>equals(Object)</code></a> and the <a href="#hashCode()"><code>hash­Code()</code></a> methods,
this field should be read only by <a href="#getValue()"><code>get­Value()</code></a> and written only by <a href="#setValue(java.lang.Object,javax.measure.Unit)"><code>set­Value(Object, Unit)</code></a>.</div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>0.7</dd>
</dl>
</li>
</ul>
<a id="unit">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>unit</h4>
<pre>protected&nbsp;<a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/Unit.html?is-external=true" title="class or interface in javax.measure" class="externalLink">Unit</a>&lt;?&gt; unit</pre>
<div class="block">The unit of measure for the value, or <code>null</code> if it does not apply.
Except for the constructors, the <a href="#equals(java.lang.Object)"><code>equals(Object)</code></a> and the <a href="#hashCode()"><code>hash­Code()</code></a> methods,
this field should be read only by <a href="#getUnit()"><code>get­Unit()</code></a> and written only by <a href="#setValue(java.lang.Object,javax.measure.Unit)"><code>set­Value(Object, Unit)</code></a>.</div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>0.7</dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a id="&lt;init&gt;(org.opengis.parameter.ParameterDescriptor)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DefaultParameterValue</h4>
<pre>public&nbsp;DefaultParameterValue&#8203;(<a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterDescriptor.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">ParameterDescriptor</a>&lt;<a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a>&gt;&nbsp;descriptor)</pre>
<div class="block">Creates a parameter value from the specified descriptor.
The value will be initialized to the default value, if any.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>descriptor</code> - the abstract definition of this parameter.</dd>
</dl>
</li>
</ul>
<a id="&lt;init&gt;(org.opengis.parameter.ParameterValue)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>DefaultParameterValue</h4>
<pre>public&nbsp;DefaultParameterValue&#8203;(<a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">ParameterValue</a>&lt;<a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a>&gt;&nbsp;parameter)</pre>
<div class="block">Creates a new instance initialized with the values from the specified parameter object.
This is a <em>shallow</em> copy constructor, since the value contained in the given
object is not cloned.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>parameter</code> - the parameter to copy values from.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#clone()"><code>clone()</code></a>,
<a href="#unmodifiable(org.opengis.parameter.ParameterValue)"><code>unmodifiable(Parameter­Value)</code></a></dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
<!-- ============ METHOD DETAIL ========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a id="getDescriptor()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDescriptor</h4>
<pre class="methodSignature">public&nbsp;<a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterDescriptor.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">ParameterDescriptor</a>&lt;<a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a>&gt;&nbsp;getDescriptor()</pre>
<div class="block">Returns the definition of this parameter.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/GeneralParameterValue.html?is-external=true#getDescriptor()" title="class or interface in org.opengis.parameter" class="externalLink">get­Descriptor</a></code>&nbsp;in interface&nbsp;<code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/GeneralParameterValue.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">General­Parameter­Value</a></code></dd>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true#getDescriptor()" title="class or interface in org.opengis.parameter" class="externalLink">get­Descriptor</a></code>&nbsp;in interface&nbsp;<code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Parameter­Value</a>&lt;<a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a>&gt;</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the definition of this parameter.</dd>
</dl>
</li>
</ul>
<a id="getUnit()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getUnit</h4>
<pre class="methodSignature">public&nbsp;<a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/Unit.html?is-external=true" title="class or interface in javax.measure" class="externalLink">Unit</a>&lt;?&gt;&nbsp;getUnit()</pre>
<div class="block">Returns the unit of measure of the parameter value.
If the parameter value has no unit (for example because it is a <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink"><code>String</code></a> type),
then this method returns <code>null</code>. Note that "no unit" does not mean "dimensionless".
<div class="section">Implementation note for subclasses</div>
All getter methods which need unit information will invoke this <code>get­Unit()</code> method.
Subclasses can override this method if they need to compute the unit dynamically.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true#getUnit()" title="class or interface in org.opengis.parameter" class="externalLink">get­Unit</a></code>&nbsp;in interface&nbsp;<code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Parameter­Value</a>&lt;<a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a>&gt;</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the unit of measure, or <code>null</code> if none.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#doubleValue()"><code>double­Value()</code></a>,
<a href="#doubleValueList()"><code>double­Value­List()</code></a>,
<a href="#getValue()"><code>get­Value()</code></a></dd>
</dl>
</li>
</ul>
<a id="getValue()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getValue</h4>
<pre class="methodSignature">public&nbsp;<a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a>&nbsp;getValue()</pre>
<div class="block">Returns the parameter value as an object.
If no value has been set, then this method returns the
<a href="DefaultParameterDescriptor.html#getDefaultValue()">default value</a> (which may be null).
<div class="section">Implementation note for subclasses</div>
All getter methods will invoke this <code>get­Value()</code> method.
Subclasses can override this method if they need to compute the value dynamically.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true#getValue()" title="class or interface in org.opengis.parameter" class="externalLink">get­Value</a></code>&nbsp;in interface&nbsp;<code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Parameter­Value</a>&lt;<a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a>&gt;</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the parameter value as an object, or <code>null</code> if no value has been set
and there is no default value.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#setValue(java.lang.Object)"><code>set­Value(Object)</code></a>,
<a href="Parameters.html#getValue(org.opengis.parameter.ParameterDescriptor)"><code>Parameters​.get­Value(Parameter­Descriptor)</code></a></dd>
</dl>
</li>
</ul>
<a id="booleanValue()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>booleanValue</h4>
<pre class="methodSignature">public&nbsp;boolean&nbsp;booleanValue()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IllegalStateException</a></pre>
<div class="block">Returns the boolean value of this parameter.
A boolean value does not have an associated unit of measure.
<p>The default implementation invokes <a href="#getValue()"><code>get­Value()</code></a> and casts the result if possible,
or throws an exception otherwise.</p></div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true#booleanValue()" title="class or interface in org.opengis.parameter" class="externalLink">boolean­Value</a></code>&nbsp;in interface&nbsp;<code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Parameter­Value</a>&lt;<a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a>&gt;</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the boolean value represented by this parameter.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/InvalidParameterTypeException.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Invalid­Parameter­Type­Exception</a></code> - if the value is not a boolean type.</dd>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink">Illegal­State­Exception</a></code> - if the value is not defined and there is no default value.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#setValue(boolean)"><code>set­Value(boolean)</code></a>,
<a href="Parameters.html#booleanValue(org.opengis.parameter.ParameterDescriptor)"><code>Parameters​.boolean­Value(Parameter­Descriptor)</code></a></dd>
</dl>
</li>
</ul>
<a id="intValue()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>intValue</h4>
<pre class="methodSignature">public&nbsp;int&nbsp;intValue()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IllegalStateException</a></pre>
<div class="block">Returns the integer value of this parameter, usually used for a count.
An integer value does not have an associated unit of measure.
<p>The default implementation invokes <a href="#getValue()"><code>get­Value()</code></a> and casts the result if possible,
or throws an exception otherwise.</p></div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true#intValue()" title="class or interface in org.opengis.parameter" class="externalLink">int­Value</a></code>&nbsp;in interface&nbsp;<code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Parameter­Value</a>&lt;<a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a>&gt;</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the numeric value represented by this parameter after conversion to type <code>int</code>.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/InvalidParameterTypeException.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Invalid­Parameter­Type­Exception</a></code> - if the value is not an integer type.</dd>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink">Illegal­State­Exception</a></code> - if the value is not defined and there is no default value.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#setValue(int)"><code>set­Value(int)</code></a>,
<a href="#intValueList()"><code>int­Value­List()</code></a>,
<a href="Parameters.html#intValue(org.opengis.parameter.ParameterDescriptor)"><code>Parameters​.int­Value(Parameter­Descriptor)</code></a></dd>
</dl>
</li>
</ul>
<a id="intValueList()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>intValueList</h4>
<pre class="methodSignature">public&nbsp;int[]&nbsp;intValueList()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IllegalStateException</a></pre>
<div class="block">Returns an ordered sequence of two or more integer values of this parameter, usually used for counts.
<p>The default implementation invokes <a href="#getValue()"><code>get­Value()</code></a> and casts the result if possible,
or throws an exception otherwise. If the value can be casted, then the array is cloned before
to be returned.</p></div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true#intValueList()" title="class or interface in org.opengis.parameter" class="externalLink">int­Value­List</a></code>&nbsp;in interface&nbsp;<code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Parameter­Value</a>&lt;<a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a>&gt;</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a copy of the sequence of values represented by this parameter.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/InvalidParameterTypeException.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Invalid­Parameter­Type­Exception</a></code> - if the value is not an array of <code>int</code>s.</dd>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink">Illegal­State­Exception</a></code> - if the value is not defined and there is no default value.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#setValue(java.lang.Object)"><code>set­Value(Object)</code></a>,
<a href="#intValue()"><code>int­Value()</code></a>,
<a href="Parameters.html#intValueList(org.opengis.parameter.ParameterDescriptor)"><code>Parameters​.int­Value­List(Parameter­Descriptor)</code></a></dd>
</dl>
</li>
</ul>
<a id="doubleValue()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>doubleValue</h4>
<pre class="methodSignature">public&nbsp;double&nbsp;doubleValue()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IllegalStateException</a></pre>
<div class="block">Returns the numeric value of this parameter.
The units of measurement are specified by <a href="#getUnit()"><code>get­Unit()</code></a>.
<p>The default implementation invokes <a href="#getValue()"><code>get­Value()</code></a> and casts the result if possible,
or throws an exception otherwise.</p></div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true#doubleValue()" title="class or interface in org.opengis.parameter" class="externalLink">double­Value</a></code>&nbsp;in interface&nbsp;<code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Parameter­Value</a>&lt;<a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a>&gt;</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the numeric value represented by this parameter after conversion to type <code>double</code>.
This method returns <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true#NaN" title="class or interface in java.lang" class="externalLink"><code>Double​.Na­N</code></a> only if such "value" has been explicitly set.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/InvalidParameterTypeException.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Invalid­Parameter­Type­Exception</a></code> - if the value is not a numeric type.</dd>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink">Illegal­State­Exception</a></code> - if the value is not defined and there is no default value.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#getUnit()"><code>get­Unit()</code></a>,
<a href="#setValue(double)"><code>set­Value(double)</code></a>,
<a href="#doubleValueList()"><code>double­Value­List()</code></a>,
<a href="Parameters.html#doubleValue(org.opengis.parameter.ParameterDescriptor)"><code>Parameters​.double­Value(Parameter­Descriptor)</code></a></dd>
</dl>
</li>
</ul>
<a id="doubleValueList()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>doubleValueList</h4>
<pre class="methodSignature">public&nbsp;double[]&nbsp;doubleValueList()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IllegalStateException</a></pre>
<div class="block">Returns an ordered sequence of two or more numeric values of this parameter,
where each value has the same associated unit of measure.
<p>The default implementation invokes <a href="#getValue()"><code>get­Value()</code></a> and casts the result if possible,
or throws an exception otherwise. If the value can be casted, then the array is cloned before
to be returned.</p></div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true#doubleValueList()" title="class or interface in org.opengis.parameter" class="externalLink">double­Value­List</a></code>&nbsp;in interface&nbsp;<code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Parameter­Value</a>&lt;<a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a>&gt;</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a copy of the sequence of values represented by this parameter.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/InvalidParameterTypeException.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Invalid­Parameter­Type­Exception</a></code> - if the value is not an array of <code>double</code>s.</dd>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink">Illegal­State­Exception</a></code> - if the value is not defined and there is no default value.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#getUnit()"><code>get­Unit()</code></a>,
<a href="#setValue(java.lang.Object)"><code>set­Value(Object)</code></a>,
<a href="#doubleValue()"><code>double­Value()</code></a></dd>
</dl>
</li>
</ul>
<a id="doubleValue(javax.measure.Unit)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>doubleValue</h4>
<pre class="methodSignature">public&nbsp;double&nbsp;doubleValue&#8203;(<a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/Unit.html?is-external=true" title="class or interface in javax.measure" class="externalLink">Unit</a>&lt;?&gt;&nbsp;unit)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IllegalArgumentException</a>,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IllegalStateException</a></pre>
<div class="block">Returns the numeric value of this parameter in the given unit of measure.
This convenience method applies unit conversions on the fly as needed.
<p>The default implementation invokes <a href="#doubleValue()"><code>double­Value()</code></a> and <a href="#getUnit()"><code>get­Unit()</code></a>,
then converts the values to the given unit of measurement.</p></div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true#doubleValue(javax.measure.Unit)" title="class or interface in org.opengis.parameter" class="externalLink">double­Value</a></code>&nbsp;in interface&nbsp;<code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Parameter­Value</a>&lt;<a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a>&gt;</code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>unit</code> - the unit of measure for the value to be returned.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the numeric value represented by this parameter after conversion to type
<code>double</code> and conversion to <code>unit</code>.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang" class="externalLink">Illegal­Argument­Exception</a></code> - if the specified unit is invalid for this parameter.</dd>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/InvalidParameterTypeException.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Invalid­Parameter­Type­Exception</a></code> - if the value is not a numeric type.</dd>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink">Illegal­State­Exception</a></code> - if the value is not defined and there is no default value.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#getUnit()"><code>get­Unit()</code></a>,
<a href="#setValue(double,javax.measure.Unit)"><code>set­Value(double,Unit)</code></a>,
<a href="#doubleValueList(javax.measure.Unit)"><code>double­Value­List(Unit)</code></a>,
<a href="Parameters.html#doubleValue(org.opengis.parameter.ParameterDescriptor)"><code>Parameters​.double­Value(Parameter­Descriptor)</code></a></dd>
</dl>
</li>
</ul>
<a id="doubleValueList(javax.measure.Unit)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>doubleValueList</h4>
<pre class="methodSignature">public&nbsp;double[]&nbsp;doubleValueList&#8203;(<a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/Unit.html?is-external=true" title="class or interface in javax.measure" class="externalLink">Unit</a>&lt;?&gt;&nbsp;unit)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IllegalArgumentException</a>,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IllegalStateException</a></pre>
<div class="block">Returns an ordered sequence of numeric values in the specified unit of measure.
This convenience method applies unit conversions on the fly as needed.
<p>The default implementation invokes <a href="#doubleValueList()"><code>double­Value­List()</code></a> and <a href="#getUnit()"><code>get­Unit()</code></a>,
then converts the values to the given unit of measurement.</p></div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true#doubleValueList(javax.measure.Unit)" title="class or interface in org.opengis.parameter" class="externalLink">double­Value­List</a></code>&nbsp;in interface&nbsp;<code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Parameter­Value</a>&lt;<a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a>&gt;</code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>unit</code> - the unit of measure for the value to be returned.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the sequence of values represented by this parameter after conversion to type
<code>double</code> and conversion to <code>unit</code>.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang" class="externalLink">Illegal­Argument­Exception</a></code> - if the specified unit is invalid for this parameter.</dd>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/InvalidParameterTypeException.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Invalid­Parameter­Type­Exception</a></code> - if the value is not an array of <code>double</code>s.</dd>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink">Illegal­State­Exception</a></code> - if the value is not defined and there is no default value.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#getUnit()"><code>get­Unit()</code></a>,
<a href="#setValue(double%5B%5D,javax.measure.Unit)"><code>set­Value(double[],Unit)</code></a>,
<a href="#doubleValue(javax.measure.Unit)"><code>double­Value(Unit)</code></a>,
<a href="Parameters.html#doubleValueList(org.opengis.parameter.ParameterDescriptor)"><code>Parameters​.double­Value­List(Parameter­Descriptor)</code></a></dd>
</dl>
</li>
</ul>
<a id="stringValue()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stringValue</h4>
<pre class="methodSignature">public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;stringValue()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IllegalStateException</a></pre>
<div class="block">Returns the string value of this parameter.
A string value does not have an associated unit of measure.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true#stringValue()" title="class or interface in org.opengis.parameter" class="externalLink">string­Value</a></code>&nbsp;in interface&nbsp;<code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Parameter­Value</a>&lt;<a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a>&gt;</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the string value represented by this parameter.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/InvalidParameterTypeException.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Invalid­Parameter­Type­Exception</a></code> - if the value is not a string.</dd>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink">Illegal­State­Exception</a></code> - if the value is not defined and there is no default value.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#getValue()"><code>get­Value()</code></a>,
<a href="#setValue(java.lang.Object)"><code>set­Value(Object)</code></a>,
<a href="Parameters.html#stringValue(org.opengis.parameter.ParameterDescriptor)"><code>Parameters​.string­Value(Parameter­Descriptor)</code></a></dd>
</dl>
</li>
</ul>
<a id="valueFile()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>valueFile</h4>
<pre class="methodSignature">public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net" class="externalLink">URI</a>&nbsp;valueFile()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IllegalStateException</a></pre>
<div class="block">Returns a reference to a file or a part of a file containing one or more parameter values.
The default implementation can convert the following value types:
<a href="https://docs.oracle.com/javase/8/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net" class="externalLink"><code>URI</code></a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net" class="externalLink"><code>URL</code></a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/file/Path.html?is-external=true" title="class or interface in java.nio.file" class="externalLink"><code>Path</code></a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io" class="externalLink"><code>File</code></a>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true#valueFile()" title="class or interface in org.opengis.parameter" class="externalLink">value­File</a></code>&nbsp;in interface&nbsp;<code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Parameter­Value</a>&lt;<a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a>&gt;</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the reference to a file containing parameter values.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/InvalidParameterTypeException.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Invalid­Parameter­Type­Exception</a></code> - if the value is not a reference to a file or a URI.</dd>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink">Illegal­State­Exception</a></code> - if the value is not defined and there is no default value.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#getValue()"><code>get­Value()</code></a>,
<a href="#setValue(java.lang.Object)"><code>set­Value(Object)</code></a></dd>
</dl>
</li>
</ul>
<a id="setValue(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setValue</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setValue&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a>&nbsp;newValue)
throws <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/InvalidParameterValueException.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">InvalidParameterValueException</a></pre>
<div class="block">Sets the parameter value as an object. The object type is typically (but not limited to) <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang" class="externalLink"><code>Double</code></a>,
<code>double[]</code>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang" class="externalLink"><code>Integer</code></a>, <code>int[]</code>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang" class="externalLink"><code>Boolean</code></a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink"><code>String</code></a> or <a href="https://docs.oracle.com/javase/8/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net" class="externalLink"><code>URI</code></a>.
If the given value is <code>null</code>, then this parameter is set to the
<a href="DefaultParameterDescriptor.html#getDefaultValue()">default value</a>.
If the given value is not an instance of the expected type, then this method may perform automatically
a type conversion (for example from <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Float.html?is-external=true" title="class or interface in java.lang" class="externalLink"><code>Float</code></a> to <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang" class="externalLink"><code>Double</code></a> or from <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/file/Path.html?is-external=true" title="class or interface in java.nio.file" class="externalLink"><code>Path</code></a> to <a href="https://docs.oracle.com/javase/8/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net" class="externalLink"><code>URI</code></a>)
if such conversion can be done without information lost.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true#setValue(java.lang.Object)" title="class or interface in org.opengis.parameter" class="externalLink">set­Value</a></code>&nbsp;in interface&nbsp;<code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Parameter­Value</a>&lt;<a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a>&gt;</code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>new­Value</code> - the parameter value, or <code>null</code> to restore the default.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/InvalidParameterValueException.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Invalid­Parameter­Value­Exception</a></code> - if the type of <code>value</code> is inappropriate for this parameter,
or if the value is illegal for some other reason (for example the value is numeric and out of range).</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#getValue()"><code>get­Value()</code></a></dd>
</dl>
</li>
</ul>
<a id="setValue(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setValue</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setValue&#8203;(boolean&nbsp;newValue)
throws <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/InvalidParameterValueException.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">InvalidParameterValueException</a></pre>
<div class="block">Sets the parameter value as a boolean.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true#setValue(boolean)" title="class or interface in org.opengis.parameter" class="externalLink">set­Value</a></code>&nbsp;in interface&nbsp;<code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Parameter­Value</a>&lt;<a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a>&gt;</code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>new­Value</code> - the parameter value.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/InvalidParameterValueException.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Invalid­Parameter­Value­Exception</a></code> - if the boolean type is inappropriate for this parameter.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#booleanValue()"><code>boolean­Value()</code></a></dd>
</dl>
</li>
</ul>
<a id="setValue(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setValue</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setValue&#8203;(int&nbsp;newValue)
throws <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/InvalidParameterValueException.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">InvalidParameterValueException</a></pre>
<div class="block">Sets the parameter value as an integer. This method automatically wraps the given integer
in an object of the type specified by the <a href="#getDescriptor()">descriptor</a> if that
conversion can be done without information lost.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true#setValue(int)" title="class or interface in org.opengis.parameter" class="externalLink">set­Value</a></code>&nbsp;in interface&nbsp;<code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Parameter­Value</a>&lt;<a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a>&gt;</code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>new­Value</code> - the parameter value.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/InvalidParameterValueException.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Invalid­Parameter­Value­Exception</a></code> - if the integer type is inappropriate for this parameter,
or if the value is illegal for some other reason (for example a value out of range).</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#intValue()"><code>int­Value()</code></a></dd>
</dl>
</li>
</ul>
<a id="setValue(double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setValue</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setValue&#8203;(double&nbsp;newValue)
throws <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/InvalidParameterValueException.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">InvalidParameterValueException</a></pre>
<div class="block">Sets the parameter value as a floating point. The unit, if any, stay unchanged. This method automatically
wraps the given number in an object of the type specified by the <a href="#getDescriptor()">descriptor</a>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true#setValue(double)" title="class or interface in org.opengis.parameter" class="externalLink">set­Value</a></code>&nbsp;in interface&nbsp;<code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Parameter­Value</a>&lt;<a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a>&gt;</code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>new­Value</code> - the parameter value.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/InvalidParameterValueException.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Invalid­Parameter­Value­Exception</a></code> - if the floating point type is inappropriate for this parameter,
or if the value is illegal for some other reason (for example a value out of range).</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#setValue(double,javax.measure.Unit)"><code>set­Value(double,Unit)</code></a>,
<a href="#doubleValue()"><code>double­Value()</code></a></dd>
</dl>
</li>
</ul>
<a id="setValue(double,javax.measure.Unit)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setValue</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setValue&#8203;(double&nbsp;newValue,
<a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/Unit.html?is-external=true" title="class or interface in javax.measure" class="externalLink">Unit</a>&lt;?&gt;&nbsp;unit)
throws <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/InvalidParameterValueException.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">InvalidParameterValueException</a></pre>
<div class="block">Sets the parameter value as a floating point and its associated unit. This method automatically wraps
the given number in an object of the type specified by the <a href="#getDescriptor()">descriptor</a>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true#setValue(double,javax.measure.Unit)" title="class or interface in org.opengis.parameter" class="externalLink">set­Value</a></code>&nbsp;in interface&nbsp;<code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Parameter­Value</a>&lt;<a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a>&gt;</code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>new­Value</code> - the parameter value.</dd>
<dd><code>unit</code> - the unit for the specified value.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/InvalidParameterValueException.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Invalid­Parameter­Value­Exception</a></code> - if the floating point type is inappropriate for this parameter,
or if the value is illegal for some other reason (for example a value out of range).</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#setValue(double)"><code>set­Value(double)</code></a>,
<a href="#doubleValue(javax.measure.Unit)"><code>double­Value(Unit)</code></a></dd>
</dl>
</li>
</ul>
<a id="setValue(double[],javax.measure.Unit)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setValue</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setValue&#8203;(double[]&nbsp;newValues,
<a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/Unit.html?is-external=true" title="class or interface in javax.measure" class="externalLink">Unit</a>&lt;?&gt;&nbsp;unit)
throws <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/InvalidParameterValueException.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">InvalidParameterValueException</a></pre>
<div class="block">Sets the parameter value as an array of floating point and their associated unit.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true#setValue(double%5B%5D,javax.measure.Unit)" title="class or interface in org.opengis.parameter" class="externalLink">set­Value</a></code>&nbsp;in interface&nbsp;<code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Parameter­Value</a>&lt;<a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a>&gt;</code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>new­Values</code> - the parameter values.</dd>
<dd><code>unit</code> - the unit for the specified value.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/InvalidParameterValueException.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Invalid­Parameter­Value­Exception</a></code> - if the floating point array type is inappropriate for this parameter,
or if the value is illegal for some other reason (for example a value out of range).</dd>
</dl>
</li>
</ul>
<a id="setValue(java.lang.Object,javax.measure.Unit)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setValue</h4>
<pre class="methodSignature">protected&nbsp;void&nbsp;setValue&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a>&nbsp;newValue,
<a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/Unit.html?is-external=true" title="class or interface in javax.measure" class="externalLink">Unit</a>&lt;?&gt;&nbsp;unit)
throws <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/InvalidParameterValueException.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">InvalidParameterValueException</a></pre>
<div class="block">Sets the parameter value and its associated unit.
If the given value is <code>null</code>, then this parameter is set to the
<a href="DefaultParameterDescriptor.html#getDefaultValue()">default value</a>.
Otherwise the given value shall be an instance of the class expected by the <a href="#getDescriptor()">descriptor</a>.
<ul>
<li>This method does not perform any type conversion. Type conversion, if desired, should be
applied by the public <code>set­Value(…)</code> methods before to invoke this protected method.</li>
<li>This method does not clone the given value. In particular, references to <code>int[]</code> and
<code>double[]</code> arrays are stored <cite>as-is</cite>.</li>
</ul>
<div class="section">Implementation note for subclasses</div>
This method is invoked by all setter methods in this class, thus providing a single point that
subclasses can override if they want to perform more processing on the value before its storage,
or to be notified about value changes.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>new­Value</code> - the parameter value, or <code>null</code> to restore the default.</dd>
<dd><code>unit</code> - the unit associated to the new parameter value, or <code>null</code>.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/InvalidParameterValueException.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Invalid­Parameter­Value­Exception</a></code> - if the type of <code>value</code> is inappropriate for this parameter,
or if the value is illegal for some other reason (for example the value is numeric and out of range).</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#validate(T)"><code>validate(Object)</code></a></dd>
</dl>
</li>
</ul>
<a id="validate(java.lang.Object)">
<!-- -->
</a><a id="validate(T)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validate</h4>
<pre class="methodSignature">protected&nbsp;void&nbsp;validate&#8203;(<a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a>&nbsp;newValue)
throws <a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/InvalidParameterValueException.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">InvalidParameterValueException</a></pre>
<div class="block">Invoked by <a href="#setValue(java.lang.Object,javax.measure.Unit)"><code>set­Value(Object, Unit)</code></a> after the basic verifications have been done and before
the value is stored. Subclasses can override this method for performing additional verifications.
<div class="section">Unit of measurement</div>
If the user specified a unit of measurement, then the value given to this method has been converted
to the unit specified by the <a href="#getDescriptor()">descriptor</a>, for easier comparisons against
standardized values. This converted value may be different than the value to be stored in this
<code>Parameter­Value</code>, since the later value will be stored in the unit specified by the user.
<div class="section">Standard validations</div>
The checks for <a href="DefaultParameterDescriptor.html#getValueClass()">value class</a>,
for <a href="DefaultParameterDescriptor.html#getValueDomain()">value domain</a> and for
<a href="DefaultParameterDescriptor.html#getValidValues()">valid values</a> are performed
before this method is invoked. The default implementation of this method does nothing.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>new­Value</code> - the value converted to the unit of measurement specified by the descriptor.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/InvalidParameterValueException.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Invalid­Parameter­Value­Exception</a></code> - if the given value is invalid for implementation-specific reasons.</dd>
</dl>
</li>
</ul>
<a id="equals(java.lang.Object,org.apache.sis.util.ComparisonMode)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equals</h4>
<pre class="methodSignature">public&nbsp;boolean&nbsp;equals&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a>&nbsp;object,
<a href="../util/ComparisonMode.html" title="enum in org.apache.sis.util">ComparisonMode</a>&nbsp;mode)</pre>
<div class="block">Compares the specified object with this parameter for equality.
The strictness level is controlled by the second argument.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../util/LenientComparable.html#equals(java.lang.Object,org.apache.sis.util.ComparisonMode)">equals</a></code>&nbsp;in interface&nbsp;<code><a href="../util/LenientComparable.html" title="interface in org.apache.sis.util">Lenient­Comparable</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>object</code> - the object to compare to <code>this</code>.</dd>
<dd><code>mode</code> - the strictness level of the comparison.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>true</code> if both objects are equal according the given comparison mode.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../util/Utilities.html#deepEquals(java.lang.Object,java.lang.Object,org.apache.sis.util.ComparisonMode)"><code>Utilities​.deep­Equals(Object, Object, Comparison­Mode)</code></a></dd>
</dl>
</li>
</ul>
<a id="equals(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equals</h4>
<pre class="methodSignature">public final&nbsp;boolean&nbsp;equals&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a>&nbsp;object)</pre>
<div class="block">Compares the specified object with this parameter for equality.
This method is implemented as below:
<blockquote><pre><font color="green">return</font> <b>equals</b>(other, ComparisonMode.STRICT);</pre></blockquote>
Subclasses shall override <a href="#equals(java.lang.Object,org.apache.sis.util.ComparisonMode)"><code>equals(Object, Comparison­Mode)</code></a> instead than this method.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../util/LenientComparable.html#equals(java.lang.Object)">equals</a></code>&nbsp;in interface&nbsp;<code><a href="../util/LenientComparable.html" title="interface in org.apache.sis.util">Lenient­Comparable</a></code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang" class="externalLink">equals</a></code>&nbsp;in class&nbsp;<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>object</code> - the object to compare to <code>this</code>.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>true</code> if both objects are equal.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../util/ComparisonMode.html#STRICT"><code>Comparison­Mode​.STRICT</code></a></dd>
</dl>
</li>
</ul>
<a id="hashCode()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hashCode</h4>
<pre class="methodSignature">public&nbsp;int&nbsp;hashCode()</pre>
<div class="block">Returns a hash value for this parameter.
This value does not need to be the same in past or future versions of this class.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang" class="externalLink">hash­Code</a></code>&nbsp;in class&nbsp;<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the hash code value.</dd>
</dl>
</li>
</ul>
<a id="clone()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clone</h4>
<pre class="methodSignature">public&nbsp;<a href="DefaultParameterValue.html" title="class in org.apache.sis.parameter">DefaultParameterValue</a>&lt;<a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a>&gt;&nbsp;clone()</pre>
<div class="block">Returns a clone of this parameter value.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/GeneralParameterValue.html?is-external=true#clone()" title="class or interface in org.opengis.parameter" class="externalLink">clone</a></code>&nbsp;in interface&nbsp;<code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/GeneralParameterValue.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">General­Parameter­Value</a></code></dd>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true#clone()" title="class or interface in org.opengis.parameter" class="externalLink">clone</a></code>&nbsp;in interface&nbsp;<code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">Parameter­Value</a>&lt;<a href="DefaultParameterValue.html" title="type parameter in DefaultParameterValue">T</a>&gt;</code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang" class="externalLink">clone</a></code>&nbsp;in class&nbsp;<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a></code></dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#%3Cinit%3E(org.opengis.parameter.ParameterValue)"><code>Default­Parameter­Value(Parameter­Value)</code></a>,
<a href="#unmodifiable(org.opengis.parameter.ParameterValue)"><code>unmodifiable(Parameter­Value)</code></a></dd>
</dl>
</li>
</ul>
<a id="unmodifiable(org.opengis.parameter.ParameterValue)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>unmodifiable</h4>
<pre class="methodSignature">public static&nbsp;&lt;T&gt;&nbsp;<a href="DefaultParameterValue.html" title="class in org.apache.sis.parameter">DefaultParameterValue</a>&lt;T&gt;&nbsp;unmodifiable&#8203;(<a href="http://www.geoapi.org/3.0/javadoc/org/opengis/parameter/ParameterValue.html?is-external=true" title="class or interface in org.opengis.parameter" class="externalLink">ParameterValue</a>&lt;T&gt;&nbsp;parameter)</pre>
<div class="block">Returns an unmodifiable implementation of the given parameter value.
This method shall be used only with:
<ul>
<li>immutable <a href="#getDescriptor()">descriptor</a>,</li>
<li>immutable or null <a href="#getUnit()">unit</a>, and</li>
<li>immutable or <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang" class="externalLink">cloneable</a> parameter <a href="#getValue()">value</a>.</li>
</ul>
If the parameter value implements the <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang" class="externalLink"><code>Cloneable</code></a> interface and has a public <code>clone()</code> method,
then that value will be cloned every time the <a href="#getValue()"><code>get­Value()</code></a> method is invoked.
The value is not cloned by this method however; it is caller's responsibility to not modify the value of
the given <code>parameter</code> instance after this method call.
<div class="section">Instances sharing</div>
If this method is invoked more than once with equal <a href="#getDescriptor()">descriptor</a>,
<a href="#getValue()">value</a> and <a href="#getUnit()">unit</a>, then this method will return
the same <code>Default­Parameter­Value</code> instance on a <cite>best effort</cite> basis.
<div class="note"><b>Rational:</b>
the same parameter value is often used in many different coordinate operations. For example all <cite>Universal
Transverse Mercator</cite> (UTM) projections use the same scale factor (0.9996) and false easting (500000 metres).
</div></div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - the type of the value stored in the given parameter.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>parameter</code> - the parameter to make unmodifiable, or <code>null</code>.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a unmodifiable implementation of the given parameter, or <code>null</code> if the given parameter was null.</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>0.6</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Parameters.html#unmodifiable(org.opengis.parameter.ParameterValueGroup)"><code>Parameters​.unmodifiable(Parameter­Value­Group)</code></a></dd>
</dl>
</li>
</ul>
<a id="formatTo(org.apache.sis.io.wkt.Formatter)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>formatTo</h4>
<pre class="methodSignature">protected&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;formatTo&#8203;(<a href="../io/wkt/Formatter.html" title="class in org.apache.sis.io.wkt">Formatter</a>&nbsp;formatter)</pre>
<div class="block">Formats this parameter as a <cite>Well Known Text</cite> <code>Parameter[…]</code> element.
Example:
<blockquote><pre>Parameter["False easting", 0.0, LengthUnit["metre", 1]]</pre></blockquote>
<div class="section">Unit of measurement</div>
The units of measurement were never specified in WKT 1 format, and are optional in WKT 2 format.
If the units are not specified, then they are inferred from the context.
Typically, parameter values that are lengths are given in the unit for the projected CRS axes
while parameter values that are angles are given in the unit for the base geographic CRS.
<div class="note"><b>Example:</b>
The snippet below show WKT representations of the map projection parameters of a projected CRS
(most other elements are omitted). The map projection uses a <cite>"Latitude of natural origin"</cite>
parameters which is set to 52 <strong>grads</strong>, as defined in the <code>UNIT[…]</code> element of the
enclosing CRS. A similar rule applies to <cite>“False easting”</cite> and <cite>“False northing”</cite>
parameters, which are in kilometres in this example.
<p><b>WKT 1:</b></p>
<blockquote><pre>PROJCS[…,
GEOGCS[…,
UNIT[“grad”, 0.015707963267948967]], // Unit for all angles
PROJECTION[“Lambert_Conformal_Conic_1SP”]
PARAMETER[“latitude_of_origin”, 52.0], // In grads
PARAMETER[“scale_factor”, 0.99987742],
PARAMETER[“false_easting”, 600.0], // In kilometres
PARAMETER[“false_northing”, 2200.0], // In kilometres
UNIT[“kilometre”, 1000]] // Unit for all lengths</pre></blockquote>
<p><b>WKT 2:</b></p>
<blockquote><pre>ProjectedCRS[…
BaseGeodCRS[…
AngleUnit[“grad”, 0.015707963267948967]],
Conversion[“Lambert zone II”,
Method[“Lambert Conic Conformal (1SP)”],
Parameter[“Latitude of natural origin”, 52.0],
Parameter[“Scale factor at natural origin”, 0.99987742],
Parameter[“False easting”, 600.0],
Parameter[“False northing”, 2200.0]],
CS[“Cartesian”, 2],
LengthUnit[“kilometre”, 1000]]</pre></blockquote>
</div></div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../io/wkt/FormattableObject.html#formatTo(org.apache.sis.io.wkt.Formatter)">format­To</a></code>&nbsp;in class&nbsp;<code><a href="../io/wkt/FormattableObject.html" title="class in org.apache.sis.io.wkt">Formattable­Object</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>formatter</code> - the formatter where to format the inner content of this WKT element.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>"Parameter"</code> or <code>"Parameter­File"</code>.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="http://docs.opengeospatial.org/is/12-063r5/12-063r5.html#119">WKT 2 specification §17.2.4</a></dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>
<!-- ========= END OF CLASS DATA ========= -->
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/DefaultParameterValue.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
<p class="legalCopy"><small>Copyright &#169; 2010&#x2013;2019 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</footer>
</body>
</html>