Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/java/org/greenbytes/http/sfv/BooleanItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
/**
* Represents a Boolean.
*
* @see <a href= "https://www.rfc-editor.org/rfc/rfc8941.html#boolean">Section
* 3.3.6 of RFC 8941</a>
* @see <a href= "https://www.rfc-editor.org/rfc/rfc9651.html#boolean">Section
* 3.3.6 of RFC 9651</a>
*/
public class BooleanItem implements Item<Boolean> {

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/greenbytes/http/sfv/ByteSequenceItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
/**
* Represents a Byte Sequence.
*
* @see <a href= "https://www.rfc-editor.org/rfc/rfc8941.html#binary">Section
* 3.3.5 of RFC 8941</a>
* @see <a href= "https://www.rfc-editor.org/rfc/rfc9651.html#binary">Section
* 3.3.5 of RFC 9651</a>
*/
public class ByteSequenceItem implements Item<ByteBuffer> {

Expand Down
3 changes: 3 additions & 0 deletions src/main/java/org/greenbytes/http/sfv/DateItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

/**
* Represents a Date.
*
* @see <a href= "https://www.rfc-editor.org/rfc/rfc9651.html#date">Section
* 3.3.7 of RFC 9651</a>
*/
public class DateItem implements NumberItem<Long> {

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/greenbytes/http/sfv/DecimalItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
* value. {@link #getAsLong()} provides access to the raw value when the
* overhead of {@link BigDecimal} is not needed.
*
* @see <a href= "https://www.rfc-editor.org/rfc/rfc8941.html#decimal">Section
* 3.3.2 of RFC 8941</a>
* @see <a href= "https://www.rfc-editor.org/rfc/rfc9651.html#decimal">Section
* 3.3.2 of RFC 9651</a>
*/
public class DecimalItem implements NumberItem<BigDecimal> {

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/greenbytes/http/sfv/Dictionary.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* Represents a Dictionary.
*
* @see <a href=
* "https://www.rfc-editor.org/rfc/rfc8941.html#dictionary">Section 3.2 of
* RFC 8941</a>
* "https://www.rfc-editor.org/rfc/rfc9651.html#dictionary">Section 3.2 of
* RFC 9651</a>
*/
public class Dictionary implements Type<Map<String, ListElement<?>>> {

Expand Down
8 changes: 6 additions & 2 deletions src/main/java/org/greenbytes/http/sfv/DisplayStringItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
import java.util.Objects;

/**
* Represents a Display String.
*
* @see <a href= "https://www.rfc-editor.org/rfc/rfc9651.html#displaystring">Section
* 3.3.8 of RFC 9651</a>
*/
public class DisplayStringItem implements Item<String> {

Expand All @@ -16,12 +20,12 @@ private DisplayStringItem(String value, Parameters params) {
}

/**
* Creates a {@link StringItem} instance representing the specified
* Creates a {@link DisplayStringItem} instance representing the specified
* {@code String} value.
*
* @param value
* a {@code String} value.
* @return a {@link StringItem} representing {@code value}.
* @return a {@link DisplayStringItem} representing {@code value}.
*/
public static DisplayStringItem valueOf(String value) {
return new DisplayStringItem(value, Parameters.EMPTY);
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/greenbytes/http/sfv/InnerList.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* Represents an Inner List.
*
* @see <a href=
* "https://www.rfc-editor.org/rfc/rfc8941.html#inner-list">Section 3.1.1
* of RFC 8941</a>
* "https://www.rfc-editor.org/rfc/rfc9651.html#inner-list">Section 3.1.1
* of RFC 9651</a>
*/
public class InnerList implements ListElement<List<Item<?>>>, Parameterizable<List<Item<?>>> {

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/greenbytes/http/sfv/IntegerItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
/**
* Represents an Integer.
*
* @see <a href= "https://www.rfc-editor.org/rfc/rfc8941.html#integer">Section
* 3.3.1 of RFC 8941</a>
* @see <a href= "https://www.rfc-editor.org/rfc/rfc9651.html#integer">Section
* 3.3.1 of RFC 9651</a>
*/
public class IntegerItem implements NumberItem<Long> {

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/greenbytes/http/sfv/Item.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
*
* @param <T>
* represented Java type
* @see <a href= "https://www.rfc-editor.org/rfc/rfc8941.html#item">Section 3.3
* of RFC 8941</a>
* @see <a href= "https://www.rfc-editor.org/rfc/rfc9651.html#item">Section 3.3
* of RFC 9651</a>
*/
public interface Item<T> extends ListElement<T>, Parameterizable<T> {

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/greenbytes/http/sfv/ListElement.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
*
* @param <T>
* represented Java type
* @see <a href= "https://www.rfc-editor.org/rfc/rfc8941.html#item">Section 3.3
* of RFC 8941</a>
* @see <a href= "https://www.rfc-editor.org/rfc/rfc9651.html#item">Section 3.3
* of RFC 9651</a>
*/
public interface ListElement<T> extends Parameterizable<T> {
}
8 changes: 4 additions & 4 deletions src/main/java/org/greenbytes/http/sfv/NumberItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
* @param <T>
* represented Java type
* @see <a href=
* "https://www.rfc-editor.org/rfc/rfc8941.html#integer">Section
* 3.3.1 of RFC 8941</a>
* "https://www.rfc-editor.org/rfc/rfc9651.html#integer">Section
* 3.3.1 of RFC 9651</a>
* @see <a href=
* "https://www.rfc-editor.org/rfc/rfc8941.html#decimal">Section
* 3.3.2 of RFC 8941</a>
* "https://www.rfc-editor.org/rfc/rfc9651.html#decimal">Section
* 3.3.2 of RFC 9651</a>
*/
public interface NumberItem<T> extends Item<T>, LongSupplier {

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/greenbytes/http/sfv/OuterList.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
/**
* Represents a List.
*
* @see <a href= "https://www.rfc-editor.org/rfc/rfc8941.html#list">Section 3.1
* of RFC 8941</a>
* @see <a href= "https://www.rfc-editor.org/rfc/rfc9651.html#list">Section 3.1
* of RFC 9651</a>
*/
public class OuterList implements Type<List<ListElement<?>>> {

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/greenbytes/http/sfv/Parameterizable.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
*
* @param <T>
* represented Java type
* @see <a href= "https://www.rfc-editor.org/rfc/rfc8941.html#param">Section
* 3.1.2 of RFC 8941</a>
* @see <a href= "https://www.rfc-editor.org/rfc/rfc9651.html#param">Section
* 3.1.2 of RFC 9651</a>
*/
public interface Parameterizable<T> extends Type<T> {

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/greenbytes/http/sfv/Parameters.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
* Represents the Parameters of an Item or an Inner List.
*
* @see <a href=
* "https://www.rfc-editor.org/rfc/rfc8941.html#param">Section
* 3.1.2 of RFC 8941</a>
* "https://www.rfc-editor.org/rfc/rfc9651.html#param">Section
* 3.1.2 of RFC 9651</a>
*/
public class Parameters implements Map<String, Item<?>> {

Expand Down
Loading