public class DefaultDependency extends DefaultStorable implements Dependency, NewDependency
storage
Constructor and Description |
---|
DefaultDependency() |
DefaultDependency(SensorStorage storage) |
Modifier and Type | Method and Description |
---|---|
void |
doSave() |
boolean |
equals(Object obj) |
DefaultDependency |
from(InputFile from) |
String |
fromKey() |
int |
hashCode() |
DefaultDependency |
setFromKey(String fromKey) |
DefaultDependency |
setToKey(String toKey) |
DefaultDependency |
setWeight(int weight) |
DefaultDependency |
to(InputFile to) |
String |
toKey() |
int |
weight()
Default weight value is 1.
|
DefaultDependency |
weight(int weight)
Set the weight of the dependency.
|
save, toString, validateLineArgument
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
save
public DefaultDependency()
public DefaultDependency(@Nullable SensorStorage storage)
public DefaultDependency from(InputFile from)
from
in interface NewDependency
public DefaultDependency to(InputFile to)
to
in interface NewDependency
public DefaultDependency weight(int weight)
NewDependency
weight
in interface NewDependency
public void doSave()
doSave
in class DefaultStorable
public String fromKey()
fromKey
in interface Dependency
public DefaultDependency setFromKey(String fromKey)
public String toKey()
toKey
in interface Dependency
public DefaultDependency setToKey(String toKey)
public int weight()
Dependency
weight
in interface Dependency
public DefaultDependency setWeight(int weight)
Copyright © 2009–2015 SonarSource. All rights reserved.