|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jenkinsci.plugins.darcs.browsers.DarcsQueryBuilder
final class DarcsQueryBuilder
Helper class to build URL queries. Queries are constructed by partial strings combined by separator characters.
| Nested Class Summary | |
|---|---|
(package private) static class |
DarcsQueryBuilder.SeparatorType
Types for queries. |
| Field Summary | |
|---|---|
private StringBuilder |
buf
Buffers the builded query string. |
private DarcsQueryBuilder.SeparatorType |
type
The separator type for the query. |
| Constructor Summary | |
|---|---|
DarcsQueryBuilder(DarcsQueryBuilder.SeparatorType t)
Does not add a first string. |
|
DarcsQueryBuilder(DarcsQueryBuilder.SeparatorType t,
String s)
Dedicated constructor. |
|
| Method Summary | |
|---|---|
DarcsQueryBuilder |
add(String s)
Add a string part. |
DarcsQueryBuilder.SeparatorType |
getType()
Get the separator type. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final StringBuilder buf
private final DarcsQueryBuilder.SeparatorType type
| Constructor Detail |
|---|
DarcsQueryBuilder(DarcsQueryBuilder.SeparatorType t)
t - separator type
DarcsQueryBuilder(DarcsQueryBuilder.SeparatorType t,
String s)
t - separator types - first string of query| Method Detail |
|---|
public DarcsQueryBuilder.SeparatorType getType()
public DarcsQueryBuilder add(String s)
s - partial string
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||