java类org.codehaus.jackson.annotate.JsonCreator的实例源码

UserPageAdClick.java 文件源码 项目:samza 阅读 13 收藏 0 点赞 0 评论 0
@JsonCreator
public UserPageAdClick(
    @JsonProperty("userId") String userId,
    @JsonProperty("pageId") String pageId,
    @JsonProperty("adId") String adId) {
  this.userId = userId;
  this.pageId = pageId;
  this.adId = adId;
}
TestTableData.java 文件源码 项目:samza 阅读 13 收藏 0 点赞 0 评论 0
@JsonCreator
public EnrichedPageView(
    @JsonProperty("pageKey") String pageKey,
    @JsonProperty("memberId") int memberId,
    @JsonProperty("company") String company) {
  super(pageKey, memberId);
  this.company = company;
}
Structure.java 文件源码 项目:openhab-hdl 阅读 24 收藏 0 点赞 0 评论 0
@JsonCreator
public static AwayState forValue(String v) {
    for (AwayState s : AwayState.values()) {
        if (s.state.equals(v)) {
            return s;
        }
    }
    throw new IllegalArgumentException("Invalid state: " + v);
}
Thermostat.java 文件源码 项目:openhab-hdl 阅读 17 收藏 0 点赞 0 评论 0
@JsonCreator
public static HvacMode forValue(String v) {
    for (HvacMode hm : HvacMode.values()) {
        if (hm.mode.equals(v)) {
            return hm;
        }
    }
    throw new IllegalArgumentException("Invalid hvac_mode: " + v);
}
Thermostat.java 文件源码 项目:openhab-hdl 阅读 22 收藏 0 点赞 0 评论 0
@JsonCreator
public static HvacState forValue(String v) {
    for (HvacState hs : HvacState.values()) {
        if (hs.state.equals(v)) {
            return hs;
        }
    }
    throw new IllegalArgumentException("Invalid hvac_state: " + v);
}
SmokeCOAlarm.java 文件源码 项目:openhab-hdl 阅读 22 收藏 0 点赞 0 评论 0
@JsonCreator
public static BatteryHealth forValue(String v) {
    for (BatteryHealth bs : BatteryHealth.values()) {
        if (bs.state.equals(v)) {
            return bs;
        }
    }
    throw new IllegalArgumentException("Invalid battery_state: " + v);
}
SmokeCOAlarm.java 文件源码 项目:openhab-hdl 阅读 23 收藏 0 点赞 0 评论 0
@JsonCreator
public static AlarmState forValue(String v) {
    for (AlarmState as : AlarmState.values()) {
        if (as.state.equals(v)) {
            return as;
        }
    }
    throw new IllegalArgumentException("Invalid alarm_state: " + v);
}
SmokeCOAlarm.java 文件源码 项目:openhab-hdl 阅读 22 收藏 0 点赞 0 评论 0
@JsonCreator
public static ColorState forValue(String v) {
    for (ColorState cs : ColorState.values()) {
        if (cs.state.equals(v)) {
            return cs;
        }
    }
    throw new IllegalArgumentException("Invalid color_state: " + v);
}
Selection.java 文件源码 项目:openhab-hdl 阅读 25 收藏 0 点赞 0 评论 0
@JsonCreator
public static SelectionType forValue(String v) {
    for (SelectionType st : SelectionType.values()) {
        if (st.type.equals(v)) {
            return st;
        }
    }
    throw new IllegalArgumentException("Invalid selection type: " + v);
}
Thermostat.java 文件源码 项目:openhab-hdl 阅读 19 收藏 0 点赞 0 评论 0
@JsonCreator
public static HvacMode forValue(String v) {
    for (HvacMode hm : HvacMode.values()) {
        if (hm.mode.equals(v)) {
            return hm;
        }
    }
    throw new IllegalArgumentException("Invalid hvacMode: " + v);
}


问题


面经


文章

微信
公众号

扫码关注公众号