Huge cleanup of gui and desktop code

- Remove lots of unused classes and methods
- Remove code related to transitioning deck format
- Refactor some interface structures
- General cleanup (imports, indentation etc.) thanks to Eclipse
- Some very minor bugfixes
This commit is contained in:
elcnesh
2015-05-01 19:27:48 +00:00
parent 9f499117dc
commit bfdcaa6a1a
258 changed files with 7349 additions and 19480 deletions

View File

@@ -6,35 +6,31 @@
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package forge.util.storage;
import com.google.common.base.Predicate;
import forge.util.IHasName;
import java.util.Collection;
/**
* TODO: Write javadoc for this type.
*
* @param <T> the generic type
*/
import com.google.common.base.Predicate;
import forge.util.IHasName;
public interface IStorage<T> extends Iterable<T>, IHasName {
T get(final String name);
T find(final Predicate<T> condition);
T get(String name);
T find(Predicate<T> condition);
Collection<String> getItemNames();
boolean contains(final String name);
boolean contains(String name);
int size();
void add(final T deck);
void delete(final String deckName);
void add(T item);
void delete(String deckName);
IStorage<IStorage<T>> getFolders();
IStorage<T> tryGetFolder(String path);
IStorage<T> getFolderOrCreate(String path);