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

io.stargate.db.DriverInfo Maven / Gradle / Ivy

There is a newer version: 2.1.0-BETA-19
Show newest version
package io.stargate.db;

import java.util.Optional;
import javax.annotation.Nullable;
import org.immutables.value.Value;

@Value.Immutable
public interface DriverInfo {
  String name();

  Optional version();

  static DriverInfo of(String name) {
    return of(name, null);
  }

  static DriverInfo of(String name, @Nullable String version) {
    return ImmutableDriverInfo.builder().name(name).version(Optional.ofNullable(version)).build();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy