Class AffordanceProperties

java.lang.Object
com.orange.spring.tmf630.affordances.AffordanceProperties

public final class AffordanceProperties extends Object
Data class that gather all additional properties, i.e. affordances.
  • Field Details

  • Constructor Details

    • AffordanceProperties

      public AffordanceProperties()
  • Method Details

    • getProperties

      @NotNull public @NotNull Map<String,AffordanceProperties.Property<?>> getProperties()
    • with

      @NotNull public static @NotNull AffordanceProperties with(@NotNull @NotNull AffordanceProperties.Property<?>... properties)
      Adds new properties to existing ones.
      Parameters:
      properties - an array of AffordanceProperties.Property
    • getByType

      @Nullable public <T> T getByType(Class<T> objectClass)
    • component1

      @NotNull public @NotNull Map<String,AffordanceProperties.Property<?>> 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

      public boolean equals(@Nullable Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object