org.gswing.components.common
Class ResultKey
java.lang.Object
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.
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.
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.