Interface ResidentList
- All Known Implementing Classes:
- Government,- Nation,- Town
public interface ResidentList
Represents an object capable of storing residents within it.
- 
Method SummaryModifier and TypeMethodDescriptionGets the unmodifiable list of outlaws.Returns an unmodifiable list of residents.booleanhasResident(String name) Whether a given object contains a resident.
- 
Method Details- 
getResidentsCollection<Resident> getResidents()Returns an unmodifiable list of residents.- Returns:
- The list of residents in this object.
 
- 
hasResidentWhether a given object contains a resident.- Parameters:
- name- The name of the resident.
- Returns:
- trueif found,- falseotherwise.
 
- 
getOutlawsCollection<Resident> getOutlaws()Gets the unmodifiable list of outlaws.- Returns:
- The list of outlaws in this object.
 
 
-