Skip to content
This repository was archived by the owner on Feb 8, 2023. It is now read-only.

Commit 572a714

Browse files
Document the CookieValue interface
1 parent 39bcc47 commit 572a714

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ cookies.remove( "name", Attributes.empty().path( "path" ) ); // removed!
6969

7070
java-cookie provides unobstrusive JSON storage for cookies and data binding.
7171

72-
When creating a cookie, you can pass an Object instead of String in the value. If you do so, java-cookie will store the stringified JSON representation of the value using [jackson databind](https://github.com/FasterXML/jackson-databind/#use-it).
72+
When creating a cookie, you can pass a few supported types instead of String in the value. If you do so, java-cookie will store the stringified JSON representation of the value using [jackson databind](https://github.com/FasterXML/jackson-databind/#use-it).
7373

74-
Consider the following class:
74+
Consider the following class that implements the `CookieValue` interface:
7575

7676
```java
77-
public class Person {
77+
public class Person implements CookieValue {
7878
private int age;
7979
public Person( int age ) {
8080
this.age = age;

0 commit comments

Comments
 (0)