Possible Duplicate:
When do you use Java's @Override annotation and why?
Java, What does @Override mean?
I was checking out Drools Planner example source code and I came across code like this:
@Override
protected Solver createSolver() {
XmlSolverConfigurer configurer = new XmlSolverConfigurer();
configurer.configure(SOLVER_CONFIG);
return configurer.buildSolver();
}
protected Solver createSolverByApi() {
// Not recommended! It is highly recommended to use XmlSolverConfigurer with an XML configuration instead.
SolverConfig solverConfig = new SolverConfig();
solverConfig.setSolutionClass(NQueens.class);
.....TRUNCATED....
solverPhaseConfigList.add(localSearchSolverPhaseConfig);
solverConfig.setSolverPhaseConfigList(solverPhaseConfigList);
return solverConfig.buildSolver();
}
As far as I understand createSolver()
and createSolverByApi()
are supposed to return Solver objects when you explicitly call them.
What does the @Override
mean here? What is the general meaning of the @ term?
EDIT: My very bad; I inadvertently duplicated What does @Override mean?