Annotation Type PropertyOrder

public @interface PropertyOrder

PropertyOrder is an annotation at the class level that controls the sort order of the Property annotations present on that class.

Order.DECLARED is the default sort order in which the properties are returned in the order they are returned by the reflection API of the JVM. This can be implementation specific and is not guaranteed to be stable.

Using Order.ALPHABETICAL will cause the properties to be sorted alphabetically.

Order.GIVEN and an array of Strings containing all properties of that class, will result in a custom order.

Optional Element Summary
 Order order
 String[] properties


public abstract Order order


public abstract String[] properties

Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.