spis.Util.Func
Class IsEqual
java.lang.Object
spis.Util.Func.IsEqual
- All Implemented Interfaces:
- ScalFunctionOfScal, TestOfInt
- public class IsEqual
- extends java.lang.Object
- implements TestOfInt, ScalFunctionOfScal
Class Name : IsEqual
Project ref : SPIS project
File name : IsEqual.java
File type : class
Copyright : ONERA, 2 Av. E. Belin, 31055 Toulouse cedex, France
http://www.onecert.fr
Status : under development
Creation : 25/08/2003
Modification :
Description : tests equality of an integer with a reference integer
Versions and anomalies correction :
Version number | Author (name, e-mail) | Corrections/Modifications |
0.1 | JF Roussel, roussel@onecert.fr | Creation |
- Version:
- 0.1
- Author:
- JF Roussel
Constructor Summary |
IsEqual(int i)
Default constructor with reference integer for comparisons |
Method Summary |
float |
compute(float x)
applies this function to x and returns the result |
boolean |
test(int n)
tests equality of an integer with a reference integer |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IsEqual
public IsEqual(int i)
- Default constructor with reference integer for comparisons
test
public boolean test(int n)
- tests equality of an integer with a reference integer
- Specified by:
test
in interface TestOfInt
compute
public float compute(float x)
- Description copied from interface:
ScalFunctionOfScal
- applies this function to x and returns the result
- Specified by:
compute
in interface ScalFunctionOfScal