Package org.sonar.api.ce.measure.test
Class TestComponent
- java.lang.Object
-
- org.sonar.api.ce.measure.test.TestComponent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TestComponent.FileAttributesImpl
-
Nested classes/interfaces inherited from interface org.sonar.api.ce.measure.Component
Component.FileAttributes, Component.Type
-
-
Constructor Summary
Constructors Constructor Description TestComponent(java.lang.String key, Component.Type type, Component.FileAttributes fileAttributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Component.FileAttributes
getFileAttributes()
The attributes of the Component if it's type is File.java.lang.String
getKey()
Component.Type
getType()
int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
TestComponent
public TestComponent(java.lang.String key, Component.Type type, @Nullable Component.FileAttributes fileAttributes)
-
-
Method Detail
-
getType
public Component.Type getType()
-
getFileAttributes
public Component.FileAttributes getFileAttributes()
Description copied from interface:Component
The attributes of the Component if it's type is File.- Specified by:
getFileAttributes
in interfaceComponent
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-