com.geotab.model.entity.controller.NoController 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.serialization.SystemEntitySerializationAware;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public final class NoController extends Controller implements SystemEntitySerializationAware {
private static class InstanceHolder {
private static final NoController INSTANCE = new NoController();
}
public static final String NO_CONTROLLER_ID = "ControllerNoneId";
private NoController() {
super(NO_CONTROLLER_ID, "***Unassigned Controller", 0L, null, null, null);
}
public static NoController getInstance() {
return InstanceHolder.INSTANCE;
}
@Override
@JsonIgnore
public boolean isSystemEntity() {
return true;
}
}