Documentation of 'org.jquantlib.lang.annotation.Time' Java class
Time
org.jquantlib.lang.annotation

Annotation Type Time



  • @Retention(value=RUNTIME)
     @Target(value={TYPE_USE,FIELD,METHOD,LOCAL_VARIABLE,PARAMETER})
    public @interface Time
    This interface is intended to be used as a tagging annotation which is helpful when we add semantic meaning to Java types.

    As an example, consider an int variable which represents an amount of apples and another int variable which represents an amount of pears. In spite the two variables are int and we surely are able to perform mathematical operations with them, semantically they represent different concepts in the real world and we should never mix them.

    See Also:
    JSR 308: Annotations on Java Types, Strong Type Checking

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.