The value of one field of one type is the value of another enumerated class.

as shown in the figure, the values of my tradeType attribute are all values in the enumerated TradeTypeEnum. I remember that I could add comments ({} or something) in the box to tell others where the value of this class came from. I forgot. Who knows?

Mar.18,2021

you mean {@ link xxx} ?


this feels a little different from OOP. Everything is object-oriented, and enum is also an object.

public class FinaceTradeOrderDto {
    private String mobile;
    
    private String vipCard;
    
    /**
     * {@desc enum type}
     * {@link com.example.TradeTypeEnum}
     */
    private TradeTypeEnum tradeType;
    
    private String changeMoney;
}
Menu