com.geotab.model.entity.parametergroup.ParameterGroup Maven / Gradle / Ivy
/*
*
* 2020 Copyright (C) Geotab Inc. All rights reserved.
*/
package com.geotab.model.entity.parametergroup;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.geotab.model.entity.NameEntity;
import com.geotab.model.serialization.ParameterGroupDeserializer;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
/**
* Standard Parameter Group Number (PGN). Where there is no parameter group it is represented by
* "ParameterGroupNoneId".
*/
@NoArgsConstructor
@Getter
@Setter
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@JsonDeserialize(using = ParameterGroupDeserializer.class)
public class ParameterGroup extends NameEntity {
/**
* The unique code of the PGN.
*/
private Integer code;
/**
* The total length in bytes of the PGN.
*/
private Integer dataLength;
@Builder(builderMethodName = "parameterGroupBuilder")
public ParameterGroup(String id, String name, Integer code, Integer dataLength) {
super(id, name);
this.code = code;
this.dataLength = dataLength;
}
}