|
|
|
|
@ -22,10 +22,6 @@ public class Url { |
|
|
|
|
return v(getPosition()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public String n() { |
|
|
|
|
return n(getPosition()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public String v(int position) { |
|
|
|
|
return position >= getValues().size() ? "" : getValues().get(position).getV(); |
|
|
|
|
} |
|
|
|
|
@ -34,6 +30,16 @@ public class Url { |
|
|
|
|
return position >= getValues().size() ? "" : getValues().get(position).getN(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public Url add(String v) { |
|
|
|
|
getValues().add(new Value("", v)); |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public Url add(String n, String v) { |
|
|
|
|
getValues().add(new Value(n, v)); |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public Url set(int position) { |
|
|
|
|
this.position = Math.min(position, getValues().size() - 1); |
|
|
|
|
return this; |
|
|
|
|
|