ObjectCreationExample

class ObjectCreationExample<T>(description: String, value: T) : CreationExample<T>

Deprecated

Use CreationExample instead

Replace with

import com.embabel.agent.api.common.CreationExample
CreationExample(description, value)

An example of creating an object of the given type. Used to provide strongly typed examples to the ObjectCreator.

Parameters

T

the type of object to create

description

description of the example--e.g. "good example, correct amount of detail"

value

the example object

Constructors

Link copied to clipboard
constructor(description: String, value: T)

Properties

Link copied to clipboard
Link copied to clipboard
val value: T

Functions

Link copied to clipboard
open fun copy(description: String = this.description, value: T = this.value): CreationExample<T>
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String