org.silverpeas.search.indexEngine.model
Class SpaceComponentPair

java.lang.Object
  extended by org.silverpeas.search.indexEngine.model.SpaceComponentPair
All Implemented Interfaces:
Serializable

public final class SpaceComponentPair
extends Object
implements Serializable

A SpaceComponentPair packs in an object a space and a component names.

See Also:
Serialized Form

Constructor Summary
SpaceComponentPair(String space, String component)
          The constructor set the pair which is immutable.
 
Method Summary
 boolean equals(Object o)
          The equals method is re-defined so that a SpaceComponentPair can be added in a Set or used as a Map key.
 String getComponent()
          Return the component name.
 String getSpace()
          Return the space name.
 int hashCode()
          The hashCode method is re-defined so that a SpaceComponentPair can be added in a Set or used as a Map key.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpaceComponentPair

public SpaceComponentPair(String space,
                          String component)
The constructor set the pair which is immutable.

Method Detail

getSpace

public String getSpace()
Return the space name.


getComponent

public String getComponent()
Return the component name.


equals

public boolean equals(Object o)
The equals method is re-defined so that a SpaceComponentPair can be added in a Set or used as a Map key.

Overrides:
equals in class Object

hashCode

public int hashCode()
The hashCode method is re-defined so that a SpaceComponentPair can be added in a Set or used as a Map key.

Overrides:
hashCode in class Object


Copyright © 2016 Silverpeas. All Rights Reserved.