I have the following class
public class SampleImport{
public SampleResult import (InputSource xml) {
SampleResult sampleResult = new SampleResult();
//do something
return sampleResult;
}
public static class SampleResult {
public final
String sampleName;
public SampleResult (String s) {
sampleName = s;
}
}
}
I would like to create an interface for this class for teh following method signature 'SampleResult import(InputSource(xml))', how would I create it ?
Any help is appreciated,
TIA,