Back to index

lightning-sunbird  0.9+nobinonly
Classes | Public Member Functions | Package Functions | Package Attributes
Type Class Reference

Represents a simple object type, associating name with size. More...

Collaboration diagram for Type:
Collaboration graph
[legend]

List of all members.

Classes

class  Comparator

Public Member Functions

int hashCode ()
boolean equals (Object obj)
String toString ()

Package Functions

 Type (String name, int size)

Package Attributes

String mName
int mSize

Detailed Description

Represents a simple object type, associating name with size.

Definition at line 40 of file Type.java.


Constructor & Destructor Documentation

Type.Type ( String  name,
int  size 
) [inline, package]

Definition at line 44 of file Type.java.

                                   {
              mName = name;
              mSize = size;
       }

Here is the caller graph for this function:


Member Function Documentation

boolean Type.equals ( Object  obj) [inline]

Definition at line 53 of file Type.java.

                                         {
              if (obj instanceof Type) {
                     Type t = (Type) obj;
                     return (t.mSize == mSize && t.mName.equals(mName));
              }
              return false;
       }

Here is the call graph for this function:

int Type.hashCode ( ) [inline]

Definition at line 49 of file Type.java.

                             {
              return mName.hashCode() + mSize;
       }
String Type.toString ( ) [inline]

Definition at line 61 of file Type.java.

                                {
              return "<A HREF=\"#" + mName + "_" + mSize + "\">&LT;" + mName + "&GT;</A> (" + mSize + ")";
       }

Here is the caller graph for this function:


Member Data Documentation

String Type.mName [package]

Definition at line 41 of file Type.java.

int Type.mSize [package]

Definition at line 42 of file Type.java.


The documentation for this class was generated from the following file: