- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
PortletSettings other = (PortletSettings) obj;
if (column == null) {
if (other.column != null)
return false;
} else if (!column.equals(other.column))
return false;
if (configurator == null) {
if (other.configurator != null)
return false;
} else if (!configurator.equals(other.configurator))
return false;
if (library == null) {
if (other.library != null)
return false;
} else if (!library.equals(other.library))
return false;
if (maximize != other.maximize)
return false;
if (portletId == null) {
if (other.portletId != null)
return false;
} else if (!portletId.equals(other.portletId))
return false;
if (row != other.row)
return false;
return true;
}
guest 30.09.2009 18:08 # 0
guest 30.09.2009 18:11 # 0
guest 30.09.2009 20:42 # 0
guest 01.10.2009 05:29 # −2
guest 01.10.2009 10:33 # 0
guest 01.10.2009 11:40 # 0
guest 01.10.2009 11:57 # 0
guest 01.10.2009 16:25 # −1
guest 12.01.2010 20:17 # 0
Suor 01.10.2009 12:10 # 0
Я в perl вообще пишу:
return undef unless $arg{action};
... поехали - основная часть
guest 01.10.2009 16:22 # 0
guest 01.10.2009 16:39 # +1
guest 12.01.2010 20:18 # 0
guest 12.01.2010 20:20 # 0
guest 02.10.2009 11:56 # 0
if (o == this)
return true;
if (!(o instanceof List))
return false;
ListIterator<E> e1 = listIterator();
ListIterator e2 = ((List) o).listIterator();
while(e1.hasNext() && e2.hasNext()) {
E o1 = e1.next();
Object o2 = e2.next();
if (!(o1==null ? o2==null : o1.equals(o2)))
return false;
}
return !(e1.hasNext() || e2.hasNext());
}
guest 06.10.2009 21:28 # −1
guest 27.11.2009 16:38 # 0