What is the better way to name a new interface ? Would you write HasName or Nameable?
Is there a general computer science standard, or only a Java habbit ?
What is the better way to name a new interface ? Would you write HasName or Nameable?
Is there a general computer science standard, or only a Java habbit ?
As Google Java Style Guide suggests:
Interface names may be nouns or noun phrases (for example, List).
But may sometimes be adjectives or adjective phrases instead (for example, Readable). They should end with -able or -ible whenever the interface provides a capability.
Interface names follow the same capitalization convention as class names:
public interface Serializable {...}
public interface SystemPanel {...}