Oracle Coherence for C++ API
Release 3.7.1.0

E22845-01

Size32 Class Reference

#include <coherence/lang/Size32.hpp>

Inherits Primitive< size32_t >, and Comparable.

List of all members.


Detailed Description

An immutable 32-bit unsigned value.

Author:
mf 2011.02.24
 

Public Types

typedef spec::Handle Handle
 Size32 Handle definition.
typedef spec::View View
 Size32 View definition.
typedef spec::Holder Holder
 Size32 Holder definition.

Public Member Functions

virtual int32_t compareTo (Object::View v) const
 Compare this object with the specified object for order.

Return a negative integer, zero, or a positive integer if this object is less than, equal to, or greater than the specified object.

It is strongly recommended, but not strictly required, that (x->compareTo(y) == 0) == (x->equals(y)).

Parameters:
 v the Object to be compared
Returns:
a negative integer, zero, or a positive integer if this object is less than, equal to, or greater than the specified object
Exceptions:
 ClassCastException if the specified Object's type prevents it from being compared to this Object

Static Public Member Functions

static Handle valueOf (size32_t n)
 Factory method to produce Size32 objects with an optimization that uses cached objects for all relatively-low values.

Static Public Attributes

static const size32_t min_value
 A constant for the minimum representable value.
static const size32_t max_value
 A constant for the maximum representable value.

Member Function Documentation

static Handle valueOf ( size32_t  n  )  [static]

Factory method to produce Size32 objects with an optimization that uses cached objects for all relatively-low values.

Parameters:
 n an size32_t
Returns:
an Size32 whose value is the passed size32_t


The documentation for this class was generated from the following file:
Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.