It is usually a bad idea not to use the JavaBeans (getters and setters) convention.
They are used by reflecting many frameworks, in particular with EL, where sometimes you canโt access your fields without right getters (depending on the taste of EL).
So your accessors should always be named getXxx()or isXxx()and setXxx().
size()in the structure of the collection is an example of a "flaw" that can annoy developers (see link below). The choice made by Josh Bloch and Neil Gufter to make it more readable now makes it difficult to obtain in some contexts (EL).
But remember, the JavaBeans convention is not a Java naming convention.
Resources:
: