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, validateLineArgumentclone, finalize, getClass, notify, notifyAll, wait, wait, waitsavepublic DefaultDependency()
public DefaultDependency(@Nullable SensorStorage storage)
public DefaultDependency from(InputFile from)
from in interface NewDependencypublic DefaultDependency to(InputFile to)
to in interface NewDependencypublic DefaultDependency weight(int weight)
NewDependencyweight in interface NewDependencypublic void doSave()
doSave in class DefaultStorablepublic String fromKey()
fromKey in interface Dependencypublic DefaultDependency setFromKey(String fromKey)
public String toKey()
toKey in interface Dependencypublic DefaultDependency setToKey(String toKey)
public int weight()
Dependencyweight in interface Dependencypublic DefaultDependency setWeight(int weight)
Copyright © 2009–2015 SonarSource. All rights reserved.