All Questions
Tagged with static-methods interfaces
3 questions
1
vote
2
answers
1k
views
Programming against interfaces in Java
Supposing I have an interface Foo and a given implementation FooImpl.
public class FooImpl implements Foo
If I want to define a new operation on this class that depends on the particular ...
1
vote
1
answer
1k
views
Static methods vs Interface implementation
Here is my problem:
I stared to create an e-commerce web site info collector.
So I created a parser for each site.
The parser class is stateless.
I have got methods like:
getItemPrice(WebElement ...
0
votes
3
answers
1k
views
Refactoring - Utility classes behavior under a common interface
I was suggested to put my question here, so I'm doing so ;)
I need a common interface which represents some specific behavior:
public interface Contract(){
public void methodA();
public void ...