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

org.metadatacenter.model.IsSystem Maven / Gradle / Ivy

The newest version!
package org.metadatacenter.model;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

public enum IsSystem {
  TRUE(true), FALSE(false);

  private final boolean value;

  IsSystem(boolean value) {
    this.value = value;
  }

  @JsonValue
  public boolean getValue() {
    return value;
  }

  @JsonCreator
  public static IsSystem forValue(boolean value) {
    for (IsSystem t : values()) {
      if (t.getValue() == value) {
        return t;
      }
    }
    return null;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy