Reputation: 370
I see that in Java there are some implementations named somethingEntity (HttpEntity
, FileEntity
,InputStreamEntity
, StringEntity
,...) - found them here
Upvotes: 2
Views: 99
Reputation: 44486
These classes are named with the suffix Entity
because they are implementations of the HttpEntity
class. Otherwise, they might be confused with InputStream
, String
, File
, Serializable
etc. classes which are included in Java SE. This is an example of the naming convention.
Summary: A naming convention and to distinguish from Java SE classes.
Upvotes: 1