Class AffordanceProperties
java.lang.Object
com.orange.spring.tmf630.affordances.AffordanceProperties
Data class that gather all additional properties, i.e. affordances.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static interface
Interface for generic additional properties -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull Map
<String, AffordanceProperties.Property<?>> @NotNull AffordanceProperties
copy
(@NotNull Map<String, AffordanceProperties.Property<?>> properties) boolean
static org.springframework.hateoas.Link
extendsAffordancesWith
(org.springframework.hateoas.Link link, AffordanceProperties extras) Java method that permits to add a new method to already existing Link class.static org.springframework.hateoas.Link
extendsAffordancesWith
(org.springframework.hateoas.Link link, AffordanceProperties.Property<?>... extras) Java method that permits to add a new method to already existing Link class.<T> T
@NotNull Map
<String, AffordanceProperties.Property<?>> int
hashCode()
toString()
static @NotNull AffordanceProperties
with
(@NotNull AffordanceProperties.Property<?>... properties) Adds new properties to existing ones.static org.springframework.hateoas.Affordance
withExtra
(org.springframework.hateoas.Affordance affordance, AffordanceProperties extras) Java method that permits to add a new method to already existing Affordance class.
-
Field Details
-
Companion
-
-
Constructor Details
-
AffordanceProperties
public AffordanceProperties()
-
-
Method Details
-
getProperties
-
with
@NotNull public static @NotNull AffordanceProperties with(@NotNull @NotNull AffordanceProperties.Property<?>... properties) Adds new properties to existing ones.- Parameters:
properties
- an array ofAffordanceProperties.Property
-
getByType
-
component1
-
extendsAffordancesWith
public static org.springframework.hateoas.Link extendsAffordancesWith(org.springframework.hateoas.Link link, AffordanceProperties.Property<?>... extras) Java method that permits to add a new method to already existing Link class. Adds new affordances to Link. -
extendsAffordancesWith
public static org.springframework.hateoas.Link extendsAffordancesWith(org.springframework.hateoas.Link link, AffordanceProperties extras) Java method that permits to add a new method to already existing Link class. Adds new affordances to Link. -
withExtra
public static org.springframework.hateoas.Affordance withExtra(org.springframework.hateoas.Affordance affordance, AffordanceProperties extras) Java method that permits to add a new method to already existing Affordance class. Adds new affordances to Affordance. -
copy
@NotNull public @NotNull AffordanceProperties copy(@NotNull @NotNull Map<String, AffordanceProperties.Property<?>> properties) -
equals
-
hashCode
public int hashCode() -
toString
-