Changing code to use interfaces instead of implementations.

This commit is contained in:
leogtzr
2017-01-21 15:47:54 -07:00
parent 6292690250
commit d6fc28e120
24 changed files with 346 additions and 13 deletions

View File

@ -23,6 +23,7 @@
package com.iluwatar.object.pool;
import java.util.HashSet;
import java.util.Set;
/**
*
@ -30,8 +31,8 @@ import java.util.HashSet;
*/
public abstract class ObjectPool<T> {
private HashSet<T> available = new HashSet<>();
private HashSet<T> inUse = new HashSet<>();
private Set<T> available = new HashSet<>();
private Set<T> inUse = new HashSet<>();
protected abstract T create();