All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.geotab.model.entity.unitofmeasure.UnitOfMeasureNone Maven / Gradle / Ivy

/*
 *
 * 2020 Copyright (C) Geotab Inc. All rights reserved.
 */

package com.geotab.model.entity.unitofmeasure;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * The placeholder unit of measure for a diagnostic that does not have any specific unit.
 */
@Getter
@Setter
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public final class UnitOfMeasureNone extends UnitOfMeasureSystem {

  private static class InstanceHolder {

    private static final UnitOfMeasureNone INSTANCE = new UnitOfMeasureNone();
  }

  public static final String UNIT_OF_MEASURE_NONE_ID = "UnitOfMeasureNoneId";
  public static final String UNIT_OF_MEASURE_NONE_NAME = "None";

  private UnitOfMeasureNone() {
    super(UNIT_OF_MEASURE_NONE_ID, UNIT_OF_MEASURE_NONE_NAME);
  }

  public static UnitOfMeasureNone getInstance() {
    return UnitOfMeasureNone.InstanceHolder.INSTANCE;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy