Skip to content

Variables vs Methods vs Functions vs Classes with build method. #25551

@KlausJokisuo

Description

@KlausJokisuo

Hello there,

I've been trying to find good documentation how a build methods should be constructed.

This is using Methods:
https://hastebin.com/pexaretave.java

This is using Classes:
https://hastebin.com/teceniculu.java

Of course you can also use Functions or variables. What is the correct way to do this? Is there some performance differences? When I should use Classes and when Methods/Functions/Variables?

Best regards,
Klaus

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions