Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,4 @@
|
|||
interface Eatable
|
||||
{
|
||||
void eat();
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
import java.util.List;
|
||||
|
||||
class FoodBox<T extends Eatable>
|
||||
{
|
||||
public List<T> food;
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
public <T extends Eatable> void foo(T x) { }
|
||||
// although in this case this is no more useful than just "public void foo(Eatable x)"
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
public class Test{
|
||||
public <T extends Eatable> void bar(){ }
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
test.<EatableClass>bar();
|
||||
Loading…
Add table
Add a link
Reference in a new issue