Interface DimensionImmutable

All Superinterfaces:
Comparable<DimensionImmutable>, com.jogamp.common.type.WriteCloneable
All Known Implementing Classes:
Dimension

public interface DimensionImmutable extends com.jogamp.common.type.WriteCloneable, Comparable<DimensionImmutable>
Immutable Dimension Interface, consisting of it's read only components:
  • width
  • height
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Compares square of size.
    boolean
    Checks whether two dimensions objects are equal.
    int
     
    int
     
    int
     

    Methods inherited from interface com.jogamp.common.type.WriteCloneable

    cloneMutable
  • Method Details

    • getHeight

      int getHeight()
    • getWidth

      int getWidth()
    • compareTo

      int compareTo(DimensionImmutable d)

      Compares square of size.

      Specified by:
      compareTo in interface Comparable<DimensionImmutable>
    • equals

      boolean equals(Object obj)
      Checks whether two dimensions objects are equal. Two instances of DimensionReadOnly are equal if two components height and width are equal.
      Overrides:
      equals in class Object
      Returns:
      true if the two dimensions are equal; otherwise false.
    • hashCode

      int hashCode()
      Overrides:
      hashCode in class Object