Skip to content

Commit e78b1b2

Browse files
committed
Add Javadoc and @SInCE 2.0.0 to new methods.
1 parent 0de6d0b commit e78b1b2

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

http-cors/src/main/java/org/apache/pekko/http/cors/javadsl/model/HttpHeaderRange.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
public abstract class HttpHeaderRange {
2525
public abstract boolean matches(String header);
2626

27+
/**
28+
* Produces a new range that matches the headers of this range and the given range.
29+
*
30+
* @since 2.0.0
31+
*/
2732
public abstract HttpHeaderRange concat(HttpHeaderRange range);
2833

2934
public static HttpHeaderRange create(String... headers) {

http-cors/src/main/scala/org/apache/pekko/http/cors/scaladsl/model/HttpHeaderRange.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ import pekko.util.Helpers
2828
sealed abstract class HttpHeaderRange extends javadsl.model.HttpHeaderRange {
2929
override def concat(range: javadsl.model.HttpHeaderRange): HttpHeaderRange
3030

31+
/**
32+
* Operator alias for [[concat]].
33+
*
34+
* @since 2.0.0
35+
*/
3136
def ++(range: javadsl.model.HttpHeaderRange): HttpHeaderRange = concat(range)
3237
}
3338

0 commit comments

Comments
 (0)