package net.squanchy.tweets.parsing;

import android.support.annotation.NonNull;

import net.squanchy.tweets.domain.view.Tweet;
import net.squanchy.tweets.model.ParsedTweetData;

public class ParsedTweetFactory {

    private static final HashtagParser hashtagParser = new HashtagParser();
    private static final MentionParser mentionParser = new MentionParser();
    private static final UrlParser urlParser = new UrlParser();

    private ParsedTweetFactory() {
        //no instance
    }

    public static ParsedTweetData from(@NonNull Tweet tweet) {
        return ParsedTweetData.create(hashtagParser.parseDataFrom(tweet.text()),
                mentionParser.parseDataFrom(tweet.text()),
                urlParser.parseDataFrom(tweet.text()));
    }
}

@@ -35,52 +35,8 @@
 g;%0A%0A
-import android.support.annotation.NonNull;%0A%0A
 impo
@@ -429,18 +429,24 @@
   //
-no
+ Not
  instan
-c
+tiabl
 e%0A  
@@ -493,17 +493,8 @@
 rom(
-@NonNull 
 Twee
@@ -542,16 +542,33 @@
 .create(
+%0A                
 hashtagP
@@ -714,16 +714,25 @@
 .text())
+%0A        
 );%0A    %7D

Remove NonNull annotation