Package org.daiitech.naftah.builtin.lang
Class NaN
java.lang.Object
org.daiitech.naftah.builtin.lang.NaN
Represents a singleton instance of a non-numeric value (NaN).
This class is used to indicate an invalid or undefined result
in custom expression evaluation, similar to Double.NaN
but at the object level.
يستخدم هذا الكائن لتمثيل قيمة غير رقمية (NaN) في لغة مخصصة أو مفسر،
وهو بديل مخصص لـ Double.NaN يمكن استخدامه في القيم الديناميكية.
- Author:
- Chakib Daii
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INSTANCE
The single instance ofNaN.النسخة الوحيدة المتاحة من
NaN.
-
-
Constructor Details
-
NaN
private NaN()
-
-
Method Details
-
get
Returns the singletonNaNinstance.يُرجع النسخة الوحيدة من
NaN.- Returns:
- the singleton instance representing "not a number"
-
isNaN
Checks whether the given object is the singletonNaNinstance.يتحقق مما إذا كان الكائن المُعطى هو قيمة
NaN.- Parameters:
object- the object to check- Returns:
trueif the object is theNaNinstance, otherwisefalse
-
toString
Returns a string representation of theNaNvalue.يُرجع تمثيلاً نصياً للقيمة غير الرقمية.
-