org.zkoss.zuss.util
Class Operators

java.lang.Object
  extended by org.zkoss.zuss.util.Operators

public class Operators
extends java.lang.Object

Utilities for handling CSS values, such as font size, color and so on.

Author:
tomyeh

Constructor Summary
Operators()
           
 
Method Summary
static java.lang.Object add(java.lang.Object val0, java.lang.Object val1)
          Adds the given values.
static int compare(java.lang.Object val0, java.lang.Object val1)
          Compares the given values.
static java.lang.Object divide(java.lang.Object val0, java.lang.Object val1)
          Divides the given values.
static boolean equals(java.lang.Object val0, java.lang.Object val1)
          Test if the given values equal to each other.
static boolean isTrue(java.lang.Object val0)
          Tests if the given object is true (i.e., non-null, not empty, not false).
static java.lang.Object multiply(java.lang.Object val0, java.lang.Object val1)
          Multiplies the given values.
static java.lang.Object negate(java.lang.Object val)
          Negates the given value.
static java.lang.Object subtract(java.lang.Object val0, java.lang.Object val1)
          Subtracts the given values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Operators

public Operators()
Method Detail

negate

public static java.lang.Object negate(java.lang.Object val)
Negates the given value.


add

public static java.lang.Object add(java.lang.Object val0,
                                   java.lang.Object val1)
Adds the given values.


subtract

public static java.lang.Object subtract(java.lang.Object val0,
                                        java.lang.Object val1)
Subtracts the given values.


multiply

public static java.lang.Object multiply(java.lang.Object val0,
                                        java.lang.Object val1)
Multiplies the given values.


divide

public static java.lang.Object divide(java.lang.Object val0,
                                      java.lang.Object val1)
Divides the given values.


equals

public static boolean equals(java.lang.Object val0,
                             java.lang.Object val1)
Test if the given values equal to each other.


compare

public static int compare(java.lang.Object val0,
                          java.lang.Object val1)
Compares the given values.

Returns:
1 if val0 is greater, 0 if equals, -1 if smaller

isTrue

public static boolean isTrue(java.lang.Object val0)
Tests if the given object is true (i.e., non-null, not empty, not false).



Copyright © 2005-2010 Potix Corporation. All Rights Reserved.