Package org.projectnessie.model
Class ContentsKey
- java.lang.Object
-
- org.projectnessie.model.ContentsKey
-
public class ContentsKey extends Object
Key for the contents of an object.For URL encoding, embedded periods within a segment are replaced with zero byte values before passing in a url string.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static ContentsKeyfromPathString(String encoded)Convert from path encoded string to normal string.List<String>getElements()inthashCode()static ContentsKeyof(String... elements)static ContentsKeyof(List<String> elements)StringtoPathString()Convert this key to a url encoded path string.StringtoString()
-
-
-
Method Detail
-
of
public static ContentsKey of(String... elements)
-
of
public static ContentsKey of(List<String> elements)
-
fromPathString
public static ContentsKey fromPathString(String encoded)
Convert from path encoded string to normal string.- Parameters:
encoded- Path encoded string- Returns:
- Actual key.
-
toPathString
public String toPathString()
Convert this key to a url encoded path string.- Returns:
- String encoded for path use.
-
-