package com.yogpc.fb.ml;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.yogpc.fb.sa.Utils;

public class CompleteMinecraftVersion {
  private final Map<Library, Object> libraries = new HashMap<Library, Object>();

  public List<String> getNames() {
    final List<String> ret = new ArrayList<String>();
    for (final Library l : this.libraries.keySet())
      if (l != null && l.name != null)
        ret.add(l.name);
    return ret;
  }

  public boolean contains(final String s) {
    for (final Library l : this.libraries.keySet())
      if (l != null && l.name != null && l.name.startsWith(s))
        return true;
    return false;
  }

  public void add(final String name) {
    if (name != null)
      this.libraries.put(new Library(name), Utils.DUMMY_OBJECT);
  }
}

@@ -68,19 +68,19 @@
 til.Hash
-Map
+Set
 ;%0Aimport
@@ -117,42 +117,11 @@
 til.
-Map;%0A%0Aimport com.yogpc.fb.sa.Utils
+Set
 ;%0A%0Ap
@@ -175,27 +175,27 @@
 e final 
-Map
+Set
 %3CLibrary
 , Object
@@ -186,24 +186,16 @@
 %3CLibrary
-, Object
 %3E librar
@@ -212,19 +212,19 @@
 Hash
-Map
+Set
 %3CLibrary
 , Ob
@@ -223,16 +223,8 @@
 rary
-, Object
 %3E();
@@ -351,33 +351,24 @@
 is.libraries
-.keySet()
 )%0A      if (
@@ -531,17 +531,8 @@
 ries
-.keySet()
 )%0A  
@@ -722,11 +722,11 @@
 ies.
-put
+add
 (new
@@ -743,28 +743,8 @@
 ame)
-, Utils.DUMMY_OBJECT
 );%0A 

Fix json loading