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

com.alibaba.dashscope.common.OutputMode Maven / Gradle / Ivy

The newest version!
// Copyright (c) Alibaba, Inc. and its affiliates.

package com.alibaba.dashscope.common;

public enum OutputMode {
  ACCUMULATE("accumulate"),
  DIVIDE("divide"),
  ;

  private final String value;

  private OutputMode(String value) {
    this.value = value;
  }

  public String getValue() {
    return value;
  }

  public static OutputMode of(String value) {
    for (OutputMode mode : OutputMode.values()) {
      if (mode.value.equals(value)) {
        return mode;
      }
    }
    return null;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy