package eu.redray.trevie.utility;

import android.net.Uri;

/**
 * Created by frano on 16/01/2016.
 */
public class YouTubeUri {

    final static String YT_BASE_URL = "https://www.youtube.com";
    final static String WATCH_PATH = "watch";
    final static String VIDEO_PARAM = "v";

    public static Uri create(String key) {
        Uri uri = Uri.parse(YT_BASE_URL).buildUpon()
                .appendPath(WATCH_PATH)
                .appendQueryParameter(VIDEO_PARAM, key)
                .build();

        return uri;
    }
}

@@ -1,8 +1,52 @@
+/*%0A * Copyright (C) 2016 Mateusz Widuch%0A */%0A
 package 
@@ -114,33 +114,42 @@
 eate
-d by frano on 16/01/2016.
+s YouTube Uri from given key value
 %0A */
@@ -175,17 +175,16 @@
 beUri %7B%0A
-%0A
     fina
@@ -385,17 +385,14 @@
     
-Uri uri =
+return
  Uri
@@ -519,16 +519,16 @@
 M, key)%0A
+
         
@@ -548,29 +548,8 @@
 d();
-%0A%0A        return uri;
 %0A   

Simplify YouTubeUri class