com.android.sdklib.internal.repository.packages
Class Package.License

java.lang.Object
  extended by com.android.sdklib.internal.repository.packages.Package.License
Enclosing class:
Package

public static class Package.License
extends java.lang.Object

License text, with an optional license XML reference.


Constructor Summary
Package.License(java.lang.String license)
           
Package.License(java.lang.String license, java.lang.String licenseRef)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getLicense()
          Returns the license text.
 java.lang.String getLicenseRef()
          Returns the license XML reference.
 int hashCode()
           
 java.lang.String toString()
          Returns a string representation of the license, useful for debugging.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Package.License

public Package.License(@NonNull
                       java.lang.String license)

Package.License

public Package.License(@NonNull
                       java.lang.String license,
                       @Nullable
                       java.lang.String licenseRef)
Method Detail

getLicense

@NonNull
public java.lang.String getLicense()
Returns the license text. Never null.


getLicenseRef

@Nullable
public java.lang.String getLicenseRef()
Returns the license XML reference. Could be null, e.g. in tests or synthetic packages recreated from local source.properties.


toString

public java.lang.String toString()
Returns a string representation of the license, useful for debugging. This is not designed to be shown to the user.

Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object