Skip to content

Commit

Permalink
Remove development patch that was committed accidentally.
Browse files Browse the repository at this point in the history
  • Loading branch information
archiecobbs committed Dec 31, 2017
1 parent 475e8de commit caf95b0
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions permazen-coreapi/src/main/java/io/permazen/core/FieldType.java
Expand Up @@ -18,7 +18,6 @@

import java.io.Serializable;
import java.util.Comparator;
import java.util.regex.Pattern;

/**
* Defines the encoding, ordering, and range of possible values for a {@link SimpleField}.
Expand All @@ -42,8 +41,6 @@
* <li>All possible values can be encoded/decoded into a self-delimiting binary string (i.e., {@code byte[]} array)
* without losing information, and these binary strings, when sorted lexicographically using unsigned comparison,
* sort consistently with the {@linkplain #compare total ordering} of the corresponding Java values.</li>
* <li>Instances provide a {@linkplain #getHexPattern regular expression} that exactly matches a binary encoded value
* when expressed as a hexadecimal string (this is used to facilitate limited manipulation at the key/value layer)</li>
* <li>All possible values can be encoded/decoded to/from {@link String}s without losing information,
* with both a {@linkplain #toString(Object) regular string form} for non-null values and a
* {@linkplain #toParseableString self-delimiting string form} for any value including null
Expand Down Expand Up @@ -301,24 +298,6 @@ public T fromString(String string) {
*/
public abstract T fromParseableString(ParseContext context);

/**
* Get a {@link Pattern} that exactly matches a binary encoded value when expressed as a hexadecimal string.
*
* <p>
* Restrictions:
* <ul>
* <li>The returned pattern should match even when there are additional characters after the encoded value.
* In other words, it must not end with a {@code $} anchor.</li>
* <li>Any parenthesized groups must be non-capturing</li>
* </ul>
*
* @return patten matching binary-encoded values
*/
//public abstract Pattern getHexPattern();
public Pattern getHexPattern() {
throw new UnsupportedOperationException();
}

/**
* Attempt to convert a value from the given {@link FieldType} into a value of this {@link FieldType}.
*
Expand Down

0 comments on commit caf95b0

Please sign in to comment.