org.sonar.api.batch.sensor.dependency.internal
Class DefaultDependency

java.lang.Object
  extended by org.sonar.api.batch.sensor.internal.DefaultStorable
      extended by org.sonar.api.batch.sensor.dependency.internal.DefaultDependency
All Implemented Interfaces:
Dependency

public class DefaultDependency
extends DefaultStorable
implements Dependency


Field Summary
 
Fields inherited from class org.sonar.api.batch.sensor.internal.DefaultStorable
storage
 
Constructor Summary
DefaultDependency()
           
DefaultDependency(SensorStorage storage)
           
 
Method Summary
 void doSave()
           
 boolean equals(Object obj)
           
 InputFile from()
           
 Dependency from(InputFile from)
           
 int hashCode()
           
 InputFile to()
           
 Dependency to(InputFile to)
           
 int weight()
          Default weight value is 1.
 Dependency weight(int weight)
          Set the weight of the dependency.
 
Methods inherited from class org.sonar.api.batch.sensor.internal.DefaultStorable
save, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.sonar.api.batch.sensor.dependency.Dependency
save
 

Constructor Detail

DefaultDependency

public DefaultDependency()

DefaultDependency

public DefaultDependency(@Nullable
                         SensorStorage storage)
Method Detail

from

public Dependency from(InputFile from)
Specified by:
from in interface Dependency

to

public Dependency to(InputFile to)
Specified by:
to in interface Dependency

weight

public Dependency weight(int weight)
Description copied from interface: Dependency
Set the weight of the dependency.

Specified by:
weight in interface Dependency

doSave

public void doSave()
Specified by:
doSave in class DefaultStorable

from

public InputFile from()
Specified by:
from in interface Dependency

to

public InputFile to()
Specified by:
to in interface Dependency

weight

public int weight()
Description copied from interface: Dependency
Default weight value is 1.

Specified by:
weight in interface Dependency

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2009–2015 SonarSource. All rights reserved.