package com.cc4102.stringDict;

import java.util.ArrayList;

/**
 * @author Lucas Puebla Silva
 *
 */
public class PatriciaTree implements StringDictionary {

    private PatriciaNode root;

    public PatriciaTree() {
        this.root = new PatriciaNode("", true, null, new ArrayList<>());
    }

    @Override
    public int getLength() {
        return 0;
    }

    @Override
    public int getSize() {
        return 0;
    }

    @Override
    public Object getRoot() {
        return root;
    }

    @Override
    public ArrayList<Integer> search(String key) {
        return root.search(key);
    }

    @Override
    public void insert(String word, int pos) {
        root.insert(word, pos);
    }
}

@@ -288,38 +288,24 @@
 ());%0A    %7D%0A%0A
-    @Override%0A
     public i
@@ -317,24 +317,24 @@
 tLength() %7B%0A
+
         retu
@@ -342,38 +342,24 @@
 n 0;%0A    %7D%0A%0A
-    @Override%0A
     public i
@@ -394,38 +394,24 @@
 n 0;%0A    %7D%0A%0A
-    @Override%0A
     public O
@@ -452,38 +452,24 @@
 oot;%0A    %7D%0A%0A
-    @Override%0A
     public A
@@ -551,22 +551,8 @@
  %7D%0A%0A
-    @Override%0A
     
@@ -590,24 +590,24 @@
  int pos) %7B%0A
-
         root
@@ -631,11 +631,162 @@
 );%0A    %7D
+%0A%0A    public String%5B%5D getKeys() %7B%0A        return new String%5B0%5D;%0A    %7D%0A%0A    public int count(String key) %7B%0A        return root.search(key).size();%0A    %7D
 %0A%7D%0A

Add getKeys and count to Patricia Tree