Integer

From CometPublic

Jump to: navigation, search

The comet declaration

   Integer x(20);

declares x as an instance of the builtin class Integer. Like Java, comet provides wrappers around the scalar comet type int. This class has the following API

   class Integer {
      int getValue();
      void setValue(int);
   }

Note that a comet int uses a 32-bit wide signed representation on 32-bit platforms.