Code example for NavigableMap

Methods: equals

0
		Cafeteria other = (Cafeteria) obj;
		if (dayMenues == null) {
			if (other.dayMenues != null) {
				return false; 
			} 
		} else if (!dayMenues.equals(other.dayMenues)) {
			return false; 
		} 
		if (name == null) {
			if (other.name != null) {
				return false; 
			} 
		} else if (!name.equals(other.name)) {
			return false; 
		} 
		return true; 
	} 
 
	@Override 
	public String toString() {
		return "Cafeteria [dayMenues=" + dayMenues + ", name=" + name + "]";