org.bolson.vote
Class NameVotingSystem.NameVote

java.lang.Object
  extended by org.bolson.vote.NameVotingSystem.NameVote
All Implemented Interfaces:
java.lang.Comparable
Enclosing class:
NameVotingSystem

public static class NameVotingSystem.NameVote
extends java.lang.Object
implements java.lang.Comparable


Field Summary
 java.lang.String name
           
 float rating
           
 
Constructor Summary
NameVotingSystem.NameVote(java.lang.String nin, float rin)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object o)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name

rating

public float rating
Constructor Detail

NameVotingSystem.NameVote

public NameVotingSystem.NameVote(java.lang.String nin,
                                 float rin)
Method Detail

compareTo

public int compareTo(java.lang.Object o)
              throws java.lang.ClassCastException
Specified by:
compareTo in interface java.lang.Comparable
Throws:
java.lang.ClassCastException

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object