-
Notifications
You must be signed in to change notification settings - Fork 870
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc6fc2e
commit 23e878d
Showing
16 changed files
with
680 additions
and
650 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
core/src/main/java/com/orientechnologies/common/util/OQuarto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.orientechnologies.common.util; | ||
|
||
import java.util.Objects; | ||
|
||
public final class OQuarto<T1, T2, T3, T4> { | ||
public final T1 one; | ||
public final T2 two; | ||
public final T3 three; | ||
public final T4 four; | ||
|
||
public OQuarto(T1 one, T2 two, T3 three, T4 four) { | ||
this.one = one; | ||
this.two = two; | ||
this.three = three; | ||
this.four = four; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) | ||
return true; | ||
if (o == null || getClass() != o.getClass()) | ||
return false; | ||
OQuarto<?, ?, ?, ?> oQuarto = (OQuarto<?, ?, ?, ?>) o; | ||
return Objects.equals(one, oQuarto.one) && Objects.equals(two, oQuarto.two) && Objects.equals(three, oQuarto.three) && Objects | ||
.equals(four, oQuarto.four); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(one, two, three, four); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "OQuarto{" + "one=" + one + ", two=" + two + ", three=" + three + ", four=" + four + '}'; | ||
} | ||
} |
Oops, something went wrong.