src/main/java/org/semgus/java/object/Identifier.java
static Index deserialize(Object indexDtoRaw) throws DeserializationException {
            if (indexDtoRaw instanceof String index) {
                return new NString(index);
            } else if (indexDtoRaw instanceof Long index) {
                return new NInt(index.intValue());
            }
            throw new DeserializationException("Identifier index must either be a string or integer constant!");
        }
/**
         * Deserializes an index value for an identifier.
         *
         * @param indexDtoRaw A JSON value representing an index value.
         * @return The deserialized index value.
         * @throws DeserializationException If {@code indexDtoRaw} is not a valid representation of an index value.
         */
Deserializes an index value for an identifier.
@param indexDtoRaw A JSON value representing an index value.
@return The deserialized index value.
@throws DeserializationException If  indexDtoRaw is not a valid representation of an index value.
Deserializes an index value for an identifier . @param indexDtoRaw A JSON value representing an index value . @return The deserialized index value . @throws DeserializationException If indexDtoRaw is not a valid representation of an index value .
static Index deserialize(Object indexDtoRaw) throws DeserializationException {
            if (indexDtoRaw instanceof String index) {
                return new NString(index);
            } else if (indexDtoRaw instanceof Long index) {
                return new NInt(index.intValue());
            }
            throw new DeserializationException("Identifier index must either be a string or integer constant!");
        }
static Index deserialize ( Object indexDtoRaw ) throws DeserializationException { if ( indexDtoRaw instanceof String index ) { return new NString ( index ) ; } else if ( indexDtoRaw instanceof Long index ) { return new NInt ( index . intValue ( ) ) ; } throw new DeserializationException ( "Identifier index must either be a string or integer constant!" ) ; }
Deserializes an index value for an identifier.
Deserializes an index value for an identifier .