public final class Block extends Object implements CodeFragment
hash, then we assume that there is a duplication in a code, which they represent.| Modifier and Type | Class and Description |
|---|---|
static class |
Block.Builder
Instances can be reused - it is safe to call
Block.Builder.build()
multiple times to build multiple blocks in series. |
| Modifier and Type | Method and Description |
|---|---|
static Block.Builder |
builder() |
boolean |
equals(Object obj) |
ByteArray |
getBlockHash() |
int |
getEndLine()
Number of line where fragment ends.
|
int |
getEndUnit() |
String |
getHashHex() |
int |
getIndexInFile() |
String |
getResourceId() |
int |
getStartLine()
Number of line where fragment starts.
|
int |
getStartUnit() |
int |
hashCode() |
String |
toString() |
public static Block.Builder builder()
public String getHashHex()
public String getResourceId()
public ByteArray getBlockHash()
public int getIndexInFile()
public int getStartLine()
CodeFragmentgetStartLine in interface CodeFragmentpublic int getEndLine()
CodeFragmentgetEndLine in interface CodeFragment@Beta public int getStartUnit()
@Beta public int getEndUnit()
Copyright © 2009-2012 SonarSource. All Rights Reserved.