L
larkmore
Hello all. I have several separate interfaces defined that I'd like
to then lump together into one big interface file. The catch here is
that I don't want to change the individual interfaces. Is this
possible, and if yes, what is the syntax?
an example:
//My interface files (each one in a separate .java file)
public interface FooInterface1 {
public void Foo1();
}
public interface FooInterface2 {
public void Foo2();
}
public interface FooInterface3 {
public void Foo3();
}
//What I'd love...
public interface FooCombined ???? FooInterface1, FooInterface2,
FooInterface3 {
}
public class FooObject implements FooCombined {
public void Foo1(){}
public void Foo2(){}
public void Foo3(){}
}
//What I am trying to avoid
public class FooObject implements FooInterface1, FooInterface2,
FooInterface3 {
public void Foo1(){}
public void Foo2(){}
public void Foo3(){}
}
Thanks for taking a look.
-Will
to then lump together into one big interface file. The catch here is
that I don't want to change the individual interfaces. Is this
possible, and if yes, what is the syntax?
an example:
//My interface files (each one in a separate .java file)
public interface FooInterface1 {
public void Foo1();
}
public interface FooInterface2 {
public void Foo2();
}
public interface FooInterface3 {
public void Foo3();
}
//What I'd love...
public interface FooCombined ???? FooInterface1, FooInterface2,
FooInterface3 {
}
public class FooObject implements FooCombined {
public void Foo1(){}
public void Foo2(){}
public void Foo3(){}
}
//What I am trying to avoid
public class FooObject implements FooInterface1, FooInterface2,
FooInterface3 {
public void Foo1(){}
public void Foo2(){}
public void Foo3(){}
}
Thanks for taking a look.
-Will