Package com.ms.object
 In this topic

*Constructors

*Methods

 

Packages
  PreviousThis PackageNext
Package com.ms.object   Previous This
Package
Next

 


Class Category

public class Category
{
  // Constructors
  public Category(String name);

  // Methods
  public boolean equals(Category other);
  public boolean equals(Object other);
  public String getName();
  public int hashCode();
  public String toString();
}

This class provides an abstract type identity. Category objects are used to describe the types of objects that are supported by a MetaObject.

Constructors

Category

public Category(String name);

Creates a new Category object with the specified name.

ParameterDescription
name The name for the new category.

Methods

equals

public boolean equals(Category other);

Tests a category for equality with another category. Two categories are equal if they have the same name.

Return Value:

Returns true if other is not null and the two categories have the same name; otherwise, returns false.

ParameterDescription
other The other Category object to test for equality.

equals

public boolean equals(Object other);

Tests a category for equality with another object.

Return Value:

Returns true if the other object is a category and the two categories are equal; otherwise, returns false.

ParameterDescription
other The other object to test for equality.

getName

public String getName();

Retrieves the name of the category.

Return Value:

Returns a String that identifies the category.

hashCode

public int hashCode();

Retrieves the category's hash code.

Return Value:

Returns an integer hash code for the category.

toString

public String toString();

Produces a summary string for the category.

Return Value:

Returns a String that describes the category by using the name of the category.

upnrm.gif