Java Doc for MeasurementRange.java in  » GIS » GeoTools-2.4.1 » org » geotools » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » GeoTools 2.4.1 » org.geotools.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.geotools.util.NumberRange
   org.geotools.util.MeasurementRange

MeasurementRange
public class MeasurementRange extends NumberRange (Code)
A range of numbers associated with a unit of measurement. Unit conversions are applied as needed by and operations.
since:
   2.4
version:
   $Id: MeasurementRange.java 26601 2007-08-19 23:16:35Z desruisseaux $
author:
   Martin Desruisseaux



Constructor Summary
public  MeasurementRange(float minimum, float maximum, Unit units)
     Constructs an inclusive range of float values.
public  MeasurementRange(float minimum, boolean isMinIncluded, float maximum, boolean isMaxIncluded, Unit units)
     Constructs a range of float values.
public  MeasurementRange(double minimum, double maximum, Unit units)
     Constructs an inclusive range of double values.
public  MeasurementRange(double minimum, boolean isMinIncluded, double maximum, boolean isMaxIncluded, Unit units)
     Constructs a range of double values.
public  MeasurementRange(Class type, Number minimum, boolean isMinIncluded, Number maximum, boolean isMaxIncluded, Unit units)
     Constructs a range of Number objects.
public  MeasurementRange(Range range, Unit units)
     Constructs a range with the same values than the specified range.
Parameters:
  range - The range to copy.

Method Summary
 NumberRangeconvertAndCast(Range range, Class type)
     Casts the specified range to the specified type.
public  MeasurementRangeconvertTo(Unit targetUnits)
     Converts this range to the specified units.
public  booleanequals(Object other)
     Compares this range with the specified object for equality.
final public  UnitgetUnits()
     Returns the units of measurement, or null if unknown.
public  StringtoString()
     Returns a string representation of this range.


Constructor Detail
MeasurementRange
public MeasurementRange(float minimum, float maximum, Unit units)(Code)
Constructs an inclusive range of float values.
Parameters:
  minimum - The minimum value, inclusive.
Parameters:
  maximum - The maximum value, inclusive.
Parameters:
  units - The units of measurement, or null if unknown.



MeasurementRange
public MeasurementRange(float minimum, boolean isMinIncluded, float maximum, boolean isMaxIncluded, Unit units)(Code)
Constructs a range of float values.
Parameters:
  minimum - The minimum value.
Parameters:
  isMinIncluded - Defines whether the minimum value is included in the Range.
Parameters:
  maximum - The maximum value.
Parameters:
  isMaxIncluded - Defines whether the maximum value is included in the Range.
Parameters:
  units - The units of measurement, or null if unknown.



MeasurementRange
public MeasurementRange(double minimum, double maximum, Unit units)(Code)
Constructs an inclusive range of double values.
Parameters:
  minimum - The minimum value, inclusive.
Parameters:
  maximum - The maximum value, inclusive.
Parameters:
  units - The units of measurement, or null if unknown.



MeasurementRange
public MeasurementRange(double minimum, boolean isMinIncluded, double maximum, boolean isMaxIncluded, Unit units)(Code)
Constructs a range of double values.
Parameters:
  minimum - The minimum value.
Parameters:
  isMinIncluded - Defines whether the minimum value is included in the Range.
Parameters:
  maximum - The maximum value.
Parameters:
  isMaxIncluded - Defines whether the maximum value is included in the Range.
Parameters:
  units - The units of measurement, or null if unknown.



MeasurementRange
public MeasurementRange(Class type, Number minimum, boolean isMinIncluded, Number maximum, boolean isMaxIncluded, Unit units)(Code)
Constructs a range of Number objects.
Parameters:
  type - The element class, usually one of Byte, Short,Integer, Long, Float or Double.
Parameters:
  minimum - The minimum value.
Parameters:
  isMinIncluded - Defines whether the minimum value is included in the Range.
Parameters:
  maximum - The maximum value.
Parameters:
  isMaxIncluded - Defines whether the maximum value is included in the Range.
Parameters:
  units - The units of measurement, or null if unknown.



MeasurementRange
public MeasurementRange(Range range, Unit units) throws ClassCastException(Code)
Constructs a range with the same values than the specified range.
Parameters:
  range - The range to copy. The elements must be Number instances.
Parameters:
  units - The units of measurement, or null if unknown.
throws:
  ClassCastException - if some elements are not instances of Number.




Method Detail
convertAndCast
NumberRange convertAndCast(Range range, Class type)(Code)
Casts the specified range to the specified type. If this class is associated to a unit of measurement, then this method convert the range units to the same units than this instance.
Parameters:
  type - The class to cast to. Must be one of Byte, Short,Integer, Long, Float or Double. The casted range, or range if no cast is needed.



convertTo
public MeasurementRange convertTo(Unit targetUnits) throws ConversionException(Code)
Converts this range to the specified units. If this measurement range has null units, then the specified target units are simply assigned to the returned range with no other changes.
Parameters:
  targetUnit - the target units. The converted range, or this if no conversion is needed.
throws:
  ConversionException - if the target units are not compatible withthis .



equals
public boolean equals(Object other)(Code)
Compares this range with the specified object for equality.



getUnits
final public Unit getUnits()(Code)
Returns the units of measurement, or null if unknown.



toString
public String toString()(Code)
Returns a string representation of this range.



Methods inherited from org.geotools.util.NumberRange
public NumberRange castTo(Class type)(Code)(Java Doc)
public boolean contains(Comparable value)(Code)(Java Doc)
public boolean contains(Number value)(Code)(Java Doc)
public boolean contains(Range range)(Code)(Java Doc)
NumberRange convertAndCast(Range range, Class type)(Code)(Java Doc)
public double getMaximum()(Code)(Java Doc)
public double getMaximum(boolean inclusive)(Code)(Java Doc)
public double getMinimum()(Code)(Java Doc)
public double getMinimum(boolean inclusive)(Code)(Java Doc)
public Range intersect(Range range)(Code)(Java Doc)
public boolean intersects(Range range)(Code)(Java Doc)
public Range[] subtract(Range range)(Code)(Java Doc)
public Range union(Range range)(Code)(Java Doc)
public static NumberRange wrap(Range range)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.