|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectListNode0
@ThreadSafe public final class ListNode0
A null implementation of a node in a compiled voter list.
| Constructor Summary | |
|---|---|
ListNode0(String voterEmail)
Creates a ListNode0. |
|
| Method Summary | |
|---|---|
int |
doubterCount()
The number of doubt signals extended to this voter, from unbarred voters. |
String |
getBar()
The list bar against the voter, if any. |
String |
getNeighbourhoodPath()
The path to the voter's leaf neighbourhood, where she resides. |
String |
getResidence()
The primary residential address of the voter. |
String |
leafRegisterPath()
Returns the slash-delimited (/) path to the voter's leaf register, within the sub-hierarchy of electoral offices. |
int |
primaryTrustEdgeCount()
The number of primary trust extending to this node. |
String |
toString()
Returns the voter email address. |
int |
trustLevel()
Calculates the trust level of this node. |
String |
voterEmail()
Identifies the voter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ListNode0(String voterEmail)
voterEmail - per voterEmail()| Method Detail |
|---|
public int doubterCount()
ListNode
doubterCount in interface ListNodeDoubtSignalpublic String getBar()
ListNodeThe bar is intended for voters to read. It ought to include the email address of the barred voter. It ought to provide information that will be helpful in allowing the voter to overcome the bar, where possible (for instance, by correcting a registration error).
getBar in interface ListNodeListNodeC.defaultRootNeighbourhoodBar(String)public String getNeighbourhoodPath()
ListNodeIf the path is empty (root leaf), then the bar is guaranteed to be non-null, barring the voter from the list. Because the list browsing facilities cannot display voters at the root leaf, we avoid confusion by barring them from the outset.
getNeighbourhoodPath in interface ListNodeNeighbourhoodpublic String getResidence()
ListNode
getResidence in interface ListNodeRegistration.getResidence()public String leafRegisterPath()
ListNoderegister@v4ontario.ca/register@v2toronto.ca
If the trace register is the leaf register (if this is the Toronto office, for example), then a dot (.) is returned.
leafRegisterPath in interface ListNodepublic int primaryTrustEdgeCount()
ListNode
primaryTrustEdgeCount in interface ListNodepublic int trustLevel()
ListNode
trustLevel in interface ListNodepublic String voterEmail()
ListNode
voterEmail in interface ListNodeRegistration.voterEmail()public String toString()
toString in class Object
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||