All Downloads are FREE. Search and download functionalities are using the official Maven repository.

craterdog.smart.UseToStringAsValueMixIn Maven / Gradle / Ivy

/************************************************************************
 * Copyright (c) Crater Dog Technologies(TM).  All Rights Reserved.     *
 ************************************************************************
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.        *
 *                                                                      *
 * This code is free software; you can redistribute it and/or modify it *
 * under the terms of The MIT License (MIT), as published by the Open   *
 * Source Initiative. (See http://opensource.org/licenses/MIT)          *
 ************************************************************************/
package craterdog.smart;

import com.fasterxml.jackson.annotation.JsonValue;

/**
 * This mixin interface tells the Jackson parser to use the toString() method to generate the value
 * of an attribute.
 *
 * @author Mukesh Jyothi
 */
public interface UseToStringAsValueMixIn {

    /**
     * This method returns a string version of the object.
     *
     * @return A string version of the object.
     */
    @JsonValue
    @Override
    public String toString();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy