package basics.collections.index;

import java.util.HashMap;

abstract class HashNode<T>
{
HashMap<String, HashNode<T>> next = null;
T                            value;

/**
 * Element constructor
 */
HashNode(T value)
{
   this.value = value;
}

/**
 * Root constructor
 */
HashNode()
{
   next = new HashMap<String, HashNode<T>>(128, 1F);
}

/*
 * Child element constructur
 */
void createNext()
{
   next = new HashMap<String, HashNode<T>>(4, 1F);
}

abstract boolean isMatch();
}
