All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.emc.mongoose.base.item.ItemFactoryImpl Maven / Gradle / Ivy

There is a newer version: 4.3.10
Show newest version
package com.emc.mongoose.base.item;

/** Created by kurila on 14.07.16. */
public class ItemFactoryImpl implements ItemFactory {

	@Override
	public I getItem(final String name, final long id, final long size) {
		return (I) new ItemImpl(name);
	}

	@Override
	public I getItem(final String line) {
		return (I) new ItemImpl(line);
	}

	@Override
	public Class getItemClass() {
		return (Class) ItemImpl.class;
	}
}