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 classTestComponent.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 booleanequals(java.lang.Object o)Component.FileAttributesgetFileAttributes()The attributes of the Component if it's type is File.java.lang.StringgetKey()Component.TypegetType()inthashCode()java.lang.StringtoString()
-
-
-
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:ComponentThe attributes of the Component if it's type is File.- Specified by:
getFileAttributesin interfaceComponent
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-