Created
September 14, 2016 09:19
-
-
Save fkaempfer/4cbb09b2d47d025cbd67931f99610bba to your computer and use it in GitHub Desktop.
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
import java.util.Date; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
/** | |
* | |
* @author fkaempfer | |
*/ | |
public class Test { | |
static HashMap<String, Date> map; | |
/** | |
* Create a predicate for testing whether the first argument is greater than | |
* the second. | |
* | |
* @param x expression | |
* @param y expression | |
* @return greater-than predicate | |
*/ | |
static <Y extends Comparable<? super Y>> Object greaterThan(List<? extends Y> x, List<? extends Y> y) { | |
return null; | |
} | |
/** | |
* Create a predicate for testing whether the first argument is greater than | |
* the second. | |
* | |
* @param x expression | |
* @param y value | |
* @return greater-than predicate | |
*/ | |
static <Y extends Comparable<? super Y>> Y greaterThan(List<? extends Y> x, Y y) { | |
return null; | |
} | |
public static <Y> List<Y> createList(Map<? super String, Y> map) { | |
return null; | |
} | |
public static Date getDate(){ | |
return null; | |
} | |
public static void and(Date... dates){ | |
} | |
public static void main(String[] args) { | |
and(greaterThan(createList(map), new Date())); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment