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

com.emc.mongoose.api.model.item.BasicDataItemFactory Maven / Gradle / Ivy

There is a newer version: 4.0.0-alpha5
Show newest version
package com.emc.mongoose.api.model.item;

/**
 Created by kurila on 21.09.16.
 */
public class BasicDataItemFactory
extends BasicItemFactory
implements DataItemFactory {

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

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