Skip to content

Commit 4b38d3a

Browse files
committed
Added additional add overloads
1 parent be7d8fa commit 4b38d3a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

ph-url/src/main/java/com/helger/url/SimpleURL.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,20 @@ public SimpleURL add (@Nonnull @Nonempty final String sParamName, final boolean
180180
return this;
181181
}
182182

183+
@Nonnull
184+
public SimpleURL add (@Nonnull @Nonempty final String sParamName, final int nParamValue)
185+
{
186+
add (sParamName, Integer.toString (nParamValue));
187+
return this;
188+
}
189+
190+
@Nonnull
191+
public SimpleURL add (@Nonnull @Nonempty final String sParamName, final long nParamValue)
192+
{
193+
add (sParamName, Long.toString (nParamValue));
194+
return this;
195+
}
196+
183197
@Nonnull
184198
public SimpleURL add (@Nonnull @Nonempty final String sParamName, @Nullable final String sParamValue)
185199
{

0 commit comments

Comments
 (0)