com.geotab.model.entity.controller.ProprietaryFaultController Maven / Gradle / Ivy
/*
*
* 2020 Copyright (C) Geotab Inc. All rights reserved.
*/
package com.geotab.model.entity.controller;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.geotab.model.entity.source.SourceProprietary;
import com.geotab.model.serialization.SystemEntitySerializationAware;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
/**
* Controller reserved for faults generated with manufacturer specific codes.
*/
@Getter
@Setter
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public final class ProprietaryFaultController extends Controller implements
SystemEntitySerializationAware {
private static class InstanceHolder {
private static final ProprietaryFaultController INSTANCE = new ProprietaryFaultController();
}
public static final String PROPRIETARY_FAULT_CONTROLLER_ID = "ControllerProprietaryFaultId";
private ProprietaryFaultController() {
super(PROPRIETARY_FAULT_CONTROLLER_ID, "Manufacturer Specific", -1L, (short) -1, (short) -1,
SourceProprietary.getInstance());
}
public static ProprietaryFaultController getInstance() {
return InstanceHolder.INSTANCE;
}
@Override
@JsonIgnore
public boolean isSystemEntity() {
return true;
}
}