-
Notifications
You must be signed in to change notification settings - Fork 109
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
427f7f3
commit 2b5c9fe
Showing
3 changed files
with
56 additions
and
11 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
common/core/src/main/java/zingg/common/core/data/df/ZDataPair.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,40 @@ | ||
package zingg.common.core.data.df; | ||
|
||
import zingg.common.client.ZFrame; | ||
import zingg.common.core.pairs.IPairBuilder; | ||
|
||
public class ZDataPair<S, D, R, C, T> { | ||
|
||
protected ZFrame<D,R,C> data1; | ||
protected ZFrame<D,R,C> data2; | ||
protected ZFrame<D,R,C> pairs; | ||
protected IPairBuilder<S, D, R, C> iPairBuilder; | ||
|
||
public ZDataPair(ZFrame<D, R, C> data1, ZFrame<D, R, C> data2, IPairBuilder<S, D, R, C> iPairBuilder) { | ||
this.data1 = data1; | ||
this.data2 = data2; | ||
this.iPairBuilder = iPairBuilder; | ||
} | ||
|
||
public ZFrame<D, R, C> getData1() { | ||
return data1; | ||
} | ||
|
||
public ZFrame<D, R, C> getData2() { | ||
return data2; | ||
} | ||
|
||
public ZFrame<D, R, C> getPairs() throws Exception { | ||
if (pairs==null) { | ||
pairs = iPairBuilder.getPairs(data1, data2); | ||
} | ||
return pairs; | ||
} | ||
|
||
public IPairBuilder<S, D, R, C> getIPairBuilder() { | ||
return iPairBuilder; | ||
} | ||
|
||
|
||
|
||
} |
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