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

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

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

/** Created by kurila on 21.09.16. */
public class DataItemFactoryImpl extends ItemFactoryImpl
				implements DataItemFactory {

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

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

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