com.geotab.model.entity.unitofmeasure.UnitOfMeasure Maven / Gradle / Ivy
/*
*
* 2020 Copyright (C) Geotab Inc. All rights reserved.
*/
package com.geotab.model.entity.unitofmeasure;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.geotab.model.entity.NameEntity;
import com.geotab.model.serialization.UnitOfMeasureDeserializer;
import com.geotab.model.serialization.UnitOfMeasureSerializer;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
/**
* Describes the unit of measure (UOM) for engine data logs. In the case where no unit of measure is
* available; this is represented by "UnitOfMeasureNoneId".
*/
@NoArgsConstructor
@Getter
@Setter
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@JsonDeserialize(using = UnitOfMeasureDeserializer.class)
@JsonSerialize(using = UnitOfMeasureSerializer.class)
public class UnitOfMeasure extends NameEntity {
public static final String UNIT_OF_MEASURE_NONE_ID = "UnitOfMeasureNoneId";
@Builder
public UnitOfMeasure(String id, String name) {
super(id, name);
}
}