added JavaDoc comments

This commit is contained in:
prajgov 2017-12-19 19:25:49 +05:30
parent 3d6c6e0301
commit 19ef7b126c
2 changed files with 41 additions and 0 deletions

View file

@ -2,6 +2,9 @@ package fr.free.nrw.commons;
import android.support.annotation.Nullable;
/**
* represents Licence object
*/
public class License {
private String key;
private String template;
@ -56,6 +59,12 @@ public class License {
}
}
/**
* Gets the license URL
*
* @param language license language
* @return URL
*/
public @Nullable String getUrl(String language) {
if (url == null) {
return null;