org.gswing.components.common
Class ResultKey

java.lang.Object
  extended by org.gswing.components.common.ResultKey

public class ResultKey
extends Object

Purpose: Class defines a unique election result instance, that is the constituency, date and type of an election result.


Constructor Summary
ResultKey(Constituency constituency, Date date, String type, String system)
          Constructor.
ResultKey(Constituency constituency, Election election)
          Constructor.
 
Method Summary
 Constituency getConstituency()
           
 Date getDate()
           
 String getSystem()
           
 String getType()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResultKey

public ResultKey(Constituency constituency,
                 Date date,
                 String type,
                 String system)
Constructor.

Parameters:
constituency - The constituency reference.
date - The election date.
type - The election type.
system - The electoral system.

ResultKey

public ResultKey(Constituency constituency,
                 Election election)
Constructor.

Parameters:
constituency - The constituency reference.
election - The election object.
Method Detail

getConstituency

public Constituency getConstituency()
Returns:
Returns the constituency.

getDate

public Date getDate()
Returns:
Returns the date.

getType

public String getType()
Returns:
Returns the type.

getSystem

public String getSystem()
Returns:
Returns the electoral system.

toString

public String toString()
Overrides:
toString in class Object
Returns:
Returns the full key.


Copyright © 2008. All Rights Reserved.