Revision 47282 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.timesupport/org.gvsig.timesupport.lib/org.gvsig.timesupport.lib.impl/src/main/java/org/gvsig/timesupport/impl/DefaultRelativeInterval.java
DefaultRelativeInterval.java | ||
---|---|---|
88 | 88 |
return jodaInterval.toString(); |
89 | 89 |
} |
90 | 90 |
|
91 |
public boolean equals(Object obj) {
|
|
92 |
if ((obj == null) || ((Time)obj).isAbsolute() || ((Time)obj).isInstant()){
|
|
91 |
public boolean equals(Object obj) { |
|
92 |
if(!(obj instanceof DefaultRelativeInterval)){
|
|
93 | 93 |
return false; |
94 | 94 |
} |
95 | 95 |
return ((DefaultRelativeInterval)obj).getJodaType().equals(jodaInterval); |
... | ... | |
123 | 123 |
return true; |
124 | 124 |
} |
125 | 125 |
|
126 |
public boolean isAbsolute() { |
|
126 |
public final boolean isAbsolute() {
|
|
127 | 127 |
return false; |
128 | 128 |
} |
129 | 129 |
|
... | ... | |
131 | 131 |
return true; |
132 | 132 |
} |
133 | 133 |
|
134 |
public boolean isInstant() { |
|
134 |
public final boolean isInstant() {
|
|
135 | 135 |
return false; |
136 | 136 |
} |
137 | 137 |
|
Also available in: Unified diff