ResourceNull

final class ResourceNull implements Resource

A class that implements the Null Object Design Pattern for Resource class.

Author:Manoel Campos da Silva Filho

See also: Resource.NULL

Methods

getAllocatedResource

public long getAllocatedResource()

getAvailableResource

public long getAvailableResource()

getCapacity

public long getCapacity()

isAmountAvailable

public boolean isAmountAvailable(long amountToCheck)

isFull

public boolean isFull()