|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.android.sdklib.repository.License
public class License
License text, with an optional license XML reference.
Constructor Summary | |
---|---|
License(java.lang.String license,
java.lang.String licenseRef)
|
Method Summary | |
---|---|
boolean |
checkAccepted(java.io.File sdkRoot)
Checks whether this license has previously been accepted. |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getLicense()
Returns the license text. |
java.lang.String |
getLicenseHash()
Returns the hash of the license text. |
java.lang.String |
getLicenseRef()
Returns the license XML reference. |
int |
hashCode()
|
boolean |
setAccepted(java.io.File sdkRoot)
Marks this license as accepted. |
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 |
---|
public License(@NonNull java.lang.String license, @Nullable java.lang.String licenseRef)
Method Detail |
---|
@NonNull public java.lang.String getLicense()
@NonNull public java.lang.String getLicenseHash()
@Nullable public java.lang.String getLicenseRef()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean checkAccepted(@Nullable java.io.File sdkRoot)
sdkRoot
- The root directory of the Android SDK
public boolean setAccepted(@Nullable java.io.File sdkRoot)
sdkRoot
- The root directory of the Android SDK
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |