1 package yukihane.inqubus.model;
11 private final String location;
13 public Location(String location) {
14 if (location == null) {
15 throw new IllegalArgumentException();
17 this.location = location;
21 this.location = f.getPath();
25 public String toString() {
30 public int hashCode() {
31 return location.hashCode();
36 public boolean equals(Object obj) {
40 if (getClass() != obj.getClass()) {
43 final Location other = (Location) obj;
44 if ((this.location == null) ? (other.location != null) : !this.location.equals(other.location)) {