Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


org.eclipse.emf.query.conditions.numbers
Class NumberCondition.FloatValue


java.lang.Object
  extended by 

org.eclipse.emf.query.conditions.Condition
      extended by 

org.eclipse.emf.query.conditions.DataTypeCondition<N>
          extended by 

org.eclipse.emf.query.conditions.numbers.NumberCondition<
Float>
              extended by 
org.eclipse.emf.query.conditions.numbers.NumberCondition.FloatValue
Enclosing class:
NumberCondition< N extends Number & Comparable<? super N>>

public static class NumberCondition.FloatValue
extends NumberCondition< Float>

A subclass of NumberCondition to be used to test for float values Clients can either use the default implementation supplied or have their own.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.query.conditions.numbers. NumberCondition
NumberCondition.ByteValue, NumberCondition.DoubleValue, NumberCondition.FloatValue, NumberCondition.IntegerValue, NumberCondition.LongValue, NumberCondition.RelationalOperator, NumberCondition.ShortValue
 
Field Summary
 
Fields inherited from class org.eclipse.emf.query.conditions.numbers. NumberCondition
BETWEEN, EQUAL_TO, GREATER_THAN, GREATER_THAN_OR_EQUAL_TO, LESS_THAN, LESS_THAN_OR_EQUAL_TO, lowerBound, lowerInclusive, NOT_EQUAL_TO, operator, upperBound, upperInclusive
 
Fields inherited from class org.eclipse.emf.query.conditions. DataTypeCondition
adapter, value
 
Fields inherited from class org.eclipse.emf.query.conditions. Condition
FALSE, TRUE
 
Constructor Summary
NumberCondition.FloatValue ( Float number)
          A simple constructor, it takes only one Float argument which means in its evaluation the values passed to it must be equal to this Float value passed.
NumberCondition.FloatValue ( Float lowerBound, Float upperBound)
          A constructor, it takes two Float arguments, a lowerBound and an upperBound, which means in its evaluation the values passed to it must be equal to any these two Float values passed or fall in between.
NumberCondition.FloatValue ( Float lowerBound, Float upperBound, NumberAdapter.FloatAdapter adapter)
          A constructor, besides the NumberAdapter.FloatAdapter, it also it takes two Float arguments, a lowerBound and an upperBound, which means in its evaluation the values passed to it must be equal to any these two Float values passed or fall in between.
NumberCondition.FloatValue ( Float number, NumberAdapter.FloatAdapter adapter)
          A simple constructor, it takes only one Float argument which means in its evaluation the values passed to it must be equal to this Float value passed.
 
Method Summary
 boolean isSatisfied ( Object object)
          This operation is the evaluation operation of this Condition in regard to the argument Object.
 
Methods inherited from class org.eclipse.emf.query.conditions.numbers. NumberCondition
between, between, equals, greaterThan, greaterThanOrEquals, isSatisfied, isSatisfied, isSatisfied, isSatisfied, isSatisfied, isSatisfied, isSatisfied, isSatisfied, isSatisfied, isSatisfied, isSatisfied, isSatisfied, lessThan, lessThanOrEquals, notEquals
 
Methods inherited from class org.eclipse.emf.query.conditions. Condition
AND, EQUIVALENT, IMPLIES, OR, XOR
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberCondition.FloatValue

public NumberCondition.FloatValue(
Float number)
A simple constructor, it takes only one Float argument which means in its evaluation the values passed to it must be equal to this Float value passed. It defaults to using the NumberAdapter.FloatAdapter.DEFAULT for adapting the objects being evaluated to a float value.

Parameters:
number - the Float object to use for equality testing

NumberCondition.FloatValue

public NumberCondition.FloatValue(
Float number,
                                  
NumberAdapter.FloatAdapter adapter)
A simple constructor, it takes only one Float argument which means in its evaluation the values passed to it must be equal to this Float value passed.

Parameters:
number - the Float object to use for equality testing
adapter - the NumberAdapter.FloatAdapter to use to extract float values from objects being evaluated.

NumberCondition.FloatValue

public NumberCondition.FloatValue(
Float lowerBound,
                                  
Float upperBound)
A constructor, it takes two Float arguments, a lowerBound and an upperBound, which means in its evaluation the values passed to it must be equal to any these two Float values passed or fall in between. It defaults to using the NumberAdapter.FloatAdapter.DEFAULT for adapting the objects being evaluated to a float value.

Parameters:
lowerBound - the Float value representing the lower-bound in range testing
upperBound - the Float value representing the upper-bound in range testing

NumberCondition.FloatValue

public NumberCondition.FloatValue(
Float lowerBound,
                                  
Float upperBound,
                                  
NumberAdapter.FloatAdapter adapter)
A constructor, besides the NumberAdapter.FloatAdapter, it also it takes two Float arguments, a lowerBound and an upperBound, which means in its evaluation the values passed to it must be equal to any these two Float values passed or fall in between.

Parameters:
lowerBound - the Float value representing the lower-bound in range testing
upperBound - the Float value representing the upper-bound in range testing
adapter - the NumberAdapter.FloatAdapter to use to extract float values from objects being evaluated.
Method Detail

isSatisfied

public boolean isSatisfied(
Object object)
Description copied from class: Condition
This operation is the evaluation operation of this Condition in regard to the argument Object. In other words, the operation answers whether the argument Object satisfied this Condition or not.

Overrides:
isSatisfied in class NumberCondition< Float>
Parameters:
object - an Object to check if it satisfies this Condition
Returns:
true if the argument Object satisfies this Condition,false otherwise.

Copyright 2002, 2007 IBM Corporation and others.
All Rights Reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire