-
Notifications
You must be signed in to change notification settings - Fork 437
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
60fe380
commit 2a35baa
Showing
8 changed files
with
49 additions
and
29 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
24 changes: 24 additions & 0 deletions
24
model/src/main/java/org/cbioportal/model/ClinicalDataTableResult.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,24 @@ | ||
package org.cbioportal.model; | ||
|
||
import org.apache.commons.lang3.tuple.ImmutablePair; | ||
|
||
public class ClinicalDataTableResult { | ||
|
||
private final ImmutablePair<SampleClinicalDataCollection, Integer> pair; | ||
|
||
public ClinicalDataTableResult(SampleClinicalDataCollection pagedCollectionFragment, Integer totalCount) { | ||
this.pair = new ImmutablePair<>(pagedCollectionFragment, totalCount); | ||
} | ||
|
||
public ClinicalDataTableResult() { | ||
this.pair = new ImmutablePair<>(new SampleClinicalDataCollection(), 0); | ||
} | ||
|
||
public SampleClinicalDataCollection getSampleClinicalDataCollection() { | ||
return pair.getLeft(); | ||
} | ||
public Integer getTotalCount() { | ||
return pair.getRight(); | ||
} | ||
|
||
} |
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
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
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