forked from masijiaqiu/kidney_watch
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
14 changed files
with
398 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
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,50 @@ | ||
package KW; | ||
|
||
import java.util.*; | ||
import java.text.*; | ||
import java.lang.*; | ||
|
||
public class FlowSheet implements Comparable<FlowSheet> { | ||
|
||
private String testDate; | ||
private Double egfr; | ||
private Double acr; | ||
private Double srcr; | ||
|
||
public String getTestDate() {return this.testDate;} | ||
public void setTestDate(String testDate) {this.testDate = testDate;} | ||
|
||
public Double getEgfr() {return this.egfr;} | ||
public void setEgfr(Double egfr) {this.egfr = egfr;} | ||
|
||
public Double getAcr() {return this.acr;} | ||
public void setAcr(Double acr) {this.acr = acr;} | ||
|
||
public Double getSrcr() {return this.srcr;} | ||
public void setSrcr(Double srcr) {this.srcr = srcr;} | ||
|
||
public int compareTo(FlowSheet compareLabTest) { | ||
Date testDate = new Date(); | ||
|
||
try { | ||
testDate = new SimpleDateFormat("yyyy-MM-dd").parse(((FlowSheet) compareLabTest).getTestDate()); | ||
} catch (Exception e) { | ||
|
||
} | ||
int compareQuantity = Integer.parseInt(new SimpleDateFormat("yyyyMMdd").format(testDate)); | ||
|
||
try { | ||
testDate = new SimpleDateFormat("yyyy-MM-dd").parse(this.testDate); | ||
} catch (Exception e) { | ||
|
||
} | ||
int thisQuantity = Integer.parseInt(new SimpleDateFormat("yyyyMMdd").format(testDate)); | ||
|
||
//descending order | ||
return compareQuantity - thisQuantity; | ||
//descending order | ||
//return compareQuantity - this.quantity; | ||
|
||
} | ||
|
||
} |
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
Binary file not shown.
Binary file not shown.
Oops, something went wrong.