Is there some similar feature in Java as ‘attributes’ in Delphi ?
Example explanation of Attributes in Delphi:
http://www.malcolmgroves.com/blog/?p=476
Att.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From that article, you’re looking for Java Annotations. They let you do things like:
where
@SomeInfois an annotation. They can be applied to classes, fields, and methods, and they carry metadata about the thing they annotate, which can be read at runtime if they have the appropriate retention. E.g: