Tabnine Logo
Preconditions.checkArgumentPresent
Code IndexAdd Tabnine to your IDE (free)

How to use
checkArgumentPresent
method
in
org.metricssampler.util.Preconditions

Best Java code snippets using org.metricssampler.util.Preconditions.checkArgumentPresent (Showing top 1 results out of 315)

origin: com.github.dimovelev/metrics-sampler-extension-oracle-nosql

public OracleNoSQLInputConfig(final String name, final Map<String, Object> variables, final List<HostConfig> hosts, Optional<String> storeName, Optional<Path> trustFile, Optional<LoginConfig> login) {
  super(name, variables);
  checkArgumentNotNullNorEmpty(hosts, "hosts");
  this.hosts = hosts;
  this.storeName = storeName;
  this.trustFile = trustFile;
  this.login = login;
  if (login.isPresent() || trustFile.isPresent() || storeName.isPresent()) {
    Preconditions.checkArgumentPresent(login, "login");
    Preconditions.checkArgumentPresent(trustFile, "trustFile");
    if (!Files.exists(trustFile.get())) {
      throw new IllegalArgumentException("The trust file [" + trustFile.get().toAbsolutePath() + "] does not exist");
    }
    Preconditions.checkArgumentPresent(storeName, "storeName");
  }
}
org.metricssampler.utilPreconditionscheckArgumentPresent

Popular methods of Preconditions

  • checkArgumentNotNull
  • checkArgumentNotNullNorEmpty
  • checkArgument
  • checkStateNotNull

Popular in Java

  • Finding current android device location
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (Timer)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • JPanel (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now