I have an interface that returns a class containing common classes. But where do I define the class? What I want is something like:
Obviously that doesn't compile, but I hate to make a file FooType.java with just the 5 lines above in it.
How do I do what I want to do?
Code:
public interface Foo {
String getName();
FooType getFoo(int a, float b);
class FooType {
Color a;
Complex b;
int c;
}
}
How do I do what I want to do?