public interface SampleInterface { public int sampleMethod(List sampleList); static class Impl implements SampleInterface { @Override public int sampleMethod(List sampleList) { return 0; } } }
static { timer.schedule(new ScheduledTask(), 60000, 60000); } private static class Schedule extends TimerTask { @Override public void run() { //doSomething(); } }
public class ClassInfoBean { public String url; @Override public boolean equals(Object o) { if (this.url.equals(((ClassInfoBean)o).url)){ return true; } return false; } }