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

io.cloudshiftdev.constructs.IDependable.kt Maven / Gradle / Ivy

The newest version!
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")

package io.cloudshiftdev.constructs

import io.cloudshiftdev.awscdk.common.CdkObject
import io.cloudshiftdev.awscdk.common.CdkObjectWrappers

public interface IDependable {
  private class Wrapper(
    cdkObject: software.constructs.IDependable,
  ) : CdkObject(cdkObject),
      IDependable

  public companion object {
    internal fun wrap(cdkObject: software.constructs.IDependable): IDependable =
        CdkObjectWrappers.wrap(cdkObject) as? IDependable ?: Wrapper(cdkObject)

    internal fun unwrap(wrapped: IDependable): software.constructs.IDependable = (wrapped as
        CdkObject).cdkObject as software.constructs.IDependable
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy