(This has nothing to do with Java conventions)
I'm looking for a guide that can help me understand how to name classes that function in certain ways.
I have looked online and read on various websites about this; but, all I learned is what not to do. i.e lower casing/dashes/dollar-signs.
But what I really want to know is how to name classes like these:
(Looking through similar projects I see that people named it "Module") In this example, I will be naming them "Function".
public class HouseButtonsFunction extends ButtonSwitchFunction{
@Override
public void interact(Person p, Object...args){
//if person turns a light switch or open-garage switch
}
}
public class CarButtonsFunction extends ButtonSwitchFunction{
@Override
public void interact(Person p, Object...args){
//if person turns on ignition or roof lights
}
}
There are also superclasses like
PersonInteractionFunction
that would deal with things like:
PersonWalkingFunction extends PersonInteractionFunction
PersonSittingDownFunction extends PersonInteractionFunction
PersonDrivingFunction extends PersonInteractionFunction
So is "Function" the correct word here?
Where can I find out the correct nomenclature?
java.util.function.