Skip to content

Instantly share code, notes, and snippets.

@fkaempfer
Created September 14, 2016 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fkaempfer/4cbb09b2d47d025cbd67931f99610bba to your computer and use it in GitHub Desktop.
Save fkaempfer/4cbb09b2d47d025cbd67931f99610bba to your computer and use it in GitHub Desktop.
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