Class SerdeArgumentConf

java.lang.Object
io.micronaut.serde.support.util.SerdeArgumentConf

@Internal public final class SerdeArgumentConf extends Object
Extra configuration placed at the argument.
Since:
2.3.2
Author:
Denis Stepanov
  • Constructor Details

    • SerdeArgumentConf

      public SerdeArgumentConf(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
  • Method Details

    • applyPrefixSuffix

      public String applyPrefixSuffix(String name)
      Apply prefix/suffix.
      Parameters:
      name - The name
      Returns:
      The name with applied prefix/suffix
    • extendArgumentWithPrefixSuffix

      public <Z> io.micronaut.core.type.Argument<Z> extendArgumentWithPrefixSuffix(io.micronaut.core.type.Argument<Z> argument)
      Extend existing argument annotation metadata to include a new prefix/suffix.
      Type Parameters:
      Z - The argument type
      Parameters:
      argument - The argument
      Returns:
      The new argument or the previous one if not changes
    • resolveAllowPropertyPredicate

      @Nullable public @Nullable Predicate<String> resolveAllowPropertyPredicate(boolean allowIgnoredProperties)
      Parameters:
      allowIgnoredProperties - Should allow ignored properties
      Returns:
      The predicate or null to include all
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      @Nullable public @Nullable String[] order()
      Returns:
      The order
    • getIgnored

      @Nullable public @Nullable String[] getIgnored()
      Returns:
      The ignored properties
    • getIncluded

      @Nullable public @Nullable String[] getIncluded()
      Returns:
      The included properties
    • getSubtypeInfo

      @Nullable public @Nullable SubtypeInfo getSubtypeInfo()