package com.snilius.aboutit;

import android.util.Log;

/**
 * Library builder
 * @author Victor Häggqvist
 * @since 9/17/15
 */
public class LibBuilder {
    private static final String TAG = LibBuilder.class.getSimpleName();

    private String name;
    private String author;
    private LicenseBase license;
    private String url;

    public LibBuilder() {
        name = "";
        author = "";
        license= null;
        url = "";
    }

    public LibBuilder name(String name) {

        this.name = name;
        return this;
    }

    public LibBuilder author(String author) {

        this.author = author;
        return this;
    }

    public LibBuilder license(LicenseBase license) {

        this.license = license;
        return this;
    }

    public LibBuilder url(String url) {
        this.url = url;
        return this;
    }

    public AboutIt.Lib build() {
        if (name == null && author == null && license == null && url == null) {
            Log.d(TAG, "This Library Builder is empty. You should either remove it or fill it out.");
        }
        return new AboutIt.Lib(name, author, license,url);
    }

}

@@ -72,16 +72,19 @@
 builder%0A
+ *%0A
  * @auth
@@ -103,16 +103,16 @@
 ggqvist%0A
-
  * @sinc
@@ -151,16 +151,17 @@
 ilder %7B%0A
+%0A
     priv
@@ -416,16 +416,17 @@
  license
+ 
 = null;%0A
@@ -488,25 +488,24 @@
 ing name) %7B%0A
-%0A
         this
@@ -588,25 +588,24 @@
 g author) %7B%0A
-%0A
         this
@@ -703,17 +703,16 @@
 ense) %7B%0A
-%0A
         
@@ -1080,16 +1080,16 @@
       %7D%0A
-
         
@@ -1133,16 +1133,17 @@
 license,
+ 
 url);%0A  

fix formatting