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

com.launchdarkly.client.DiagnosticId Maven / Gradle / Ivy

package com.launchdarkly.client;

import java.util.UUID;

class DiagnosticId {

  final String diagnosticId = UUID.randomUUID().toString();
  final String sdkKeySuffix;

  DiagnosticId(String sdkKey) {
    if (sdkKey == null) {
      sdkKeySuffix = null;
    } else {
      this.sdkKeySuffix = sdkKey.substring(Math.max(0, sdkKey.length() - 6));
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy