Class MultipartProperty<T>

java.lang.Object
alexiil.mc.lib.multipart.api.property.MultipartProperty<T>
Direct Known Subclasses:
MultipartProperty.IntegerBoundProperty, MultipartProperty.PreferedBooleanProperty

public abstract class MultipartProperty<T>
extends java.lang.Object
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  MultipartProperty.IntegerBoundProperty  
    static class  MultipartProperty.PreferedBooleanProperty
    A property where the value will combine up to whatever is opposite to the defaultValue
  • Field Summary

    Fields 
    Modifier and Type Field Description
    java.lang.Class<T> clazz  
    T defaultValue  
    java.lang.String name  
  • Constructor Summary

    Constructors 
    Constructor Description
    MultipartProperty​(java.lang.String name, java.lang.Class<T> clazz, T defaultValue)  
  • Method Summary

    Modifier and Type Method Description
    abstract T combine​(java.util.List<T> values)  
    boolean equals​(java.lang.Object obj)  
    int hashCode()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • name

      public final java.lang.String name
    • clazz

      public final java.lang.Class<T> clazz
    • defaultValue

      public final T defaultValue
  • Constructor Details

    • MultipartProperty

      public MultipartProperty​(java.lang.String name, java.lang.Class<T> clazz, T defaultValue)
  • Method Details

    • equals

      public final boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • toString

      public final java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • combine

      public abstract T combine​(java.util.List<T> values)
      Parameters:
      values - A non-empty list of property values.
      Returns:
      The combined value.