Sho SHIMIZU

Add more descriptive Javadoc

Change-Id: I531722465a7575793c3efbf0bf44ee4ff9bac928
...@@ -35,6 +35,15 @@ public abstract class BooleanConstraint implements Constraint { ...@@ -35,6 +35,15 @@ public abstract class BooleanConstraint implements Constraint {
35 */ 35 */
36 public abstract boolean isValid(Link link, LinkResourceService resourceService); 36 public abstract boolean isValid(Link link, LinkResourceService resourceService);
37 37
38 + /**
39 + * {@inheritDoc}
40 + *
41 + * Negative return value means the specified link does not satisfy this constraint.
42 + *
43 + * @param link {@inheritDoc}
44 + * @param resourceService {@inheritDoc}
45 + * @return {@inheritDoc}
46 + */
38 @Override 47 @Override
39 public double cost(Link link, LinkResourceService resourceService) { 48 public double cost(Link link, LinkResourceService resourceService) {
40 return isValid(link, resourceService) ? +1 : -1; 49 return isValid(link, resourceService) ? +1 : -1;
......