Muli Salem has posted comments on this change.
Change subject: core: PairQueryable Class
......................................................................
Patch Set 1: (6 inline comments)
....................................................
File
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/utils/Pair.java
Line 1: package org.ovirt.engine.core.common.utils;
Line 2:
Line 3: public class Pair<T, K> {
Done
Line 4: private T first;
Line 5: private K second;
Line 6:
Line 7: public Pair() {
....................................................
File
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/utils/PairQueryable.java
Line 7: */
Line 8: public class PairQueryable<T, K> extends IVdcQueryable {
Line 9: private static final long serialVersionUID = -8894728003078425184L;
Line 10:
Line 11: private Pair<T, K> pair = new Pair<T, K>();
Done
Line 12:
Line 13: public PairQueryable() {
Line 14: }
Line 15:
Line 16: public PairQueryable(T first, K second) {
Line 17: pair = new Pair<T, K>(first, second);
Line 18: }
Line 19:
Line 20: public Pair<T, K> getPair() {
Done
Line 21: return pair == null ? new Pair<T, K>(null, null) : pair;
Line 22: }
Line 23:
Line 24: public void setPair(Pair<T, K> pair) {
Line 17: pair = new Pair<T, K>(first, second);
Line 18: }
Line 19:
Line 20: public Pair<T, K> getPair() {
Line 21: return pair == null ? new Pair<T, K>(null, null) : pair;
Done
Line 22: }
Line 23:
Line 24: public void setPair(Pair<T, K> pair) {
Line 25: this.pair = pair;
Line 20: public Pair<T, K> getPair() {
Line 21: return pair == null ? new Pair<T, K>(null, null) : pair;
Line 22: }
Line 23:
Line 24: public void setPair(Pair<T, K> pair) {
Done
Line 25: this.pair = pair;
Line 26: }
Line 27:
Line 28: public void setFirst(T value) {
Line 54: if (this == obj)
Line 55: return true;
Line 56: if (obj == null)
Line 57: return false;
Line 58: if (getClass() != obj.getClass())
Done
Line 59: return false;
Line 60: PairQueryable other = (PairQueryable) obj;
Line 61: if (getPair() == null) {
Line 62: if (other.getPair() != null)
--
To view, visit http://gerrit.ovirt.org/8833
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Ic26f8c18245eb187a6ee20dcb2b9b9c03c3992bf
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Muli Salem <[email protected]>
Gerrit-Reviewer: Alona Kaplan <[email protected]>
Gerrit-Reviewer: Mike Kolesnik <[email protected]>
Gerrit-Reviewer: Moti Asayag <[email protected]>
Gerrit-Reviewer: Muli Salem <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches