jodd-bean/src/main/java/jodd/introspector/Properties.java
public PropertyDescriptor[] getAllPropertyDescriptors() {
		if (allProperties == null) {
			PropertyDescriptor[] allProperties = new PropertyDescriptor[propertyDescriptors.size()];

			int index = 0;
			for (PropertyDescriptor propertyDescriptor : propertyDescriptors.values()) {
				allProperties[index] = propertyDescriptor;
				index++;
			}

			Arrays.sort(allProperties, new Comparator<PropertyDescriptor>() {
				@Override
				public int compare(final PropertyDescriptor pd1, final PropertyDescriptor pd2) {
					return pd1.getName().compareTo(pd2.getName());
				}
			});

			this.allProperties = allProperties;
		}
		return allProperties;
	}
public PropertyDescriptor[] getAllPropertyDescriptors() {
		if (allProperties == null) {
			PropertyDescriptor[] allProperties = new PropertyDescriptor[propertyDescriptors.size()];

			int index = 0;
			for (PropertyDescriptor propertyDescriptor : propertyDescriptors.values()) {
				allProperties[index] = propertyDescriptor;
				index++;
			}

			Arrays.sort(allProperties, new Comparator<PropertyDescriptor>() {
				@Override
				public int compare(final PropertyDescriptor pd1, final PropertyDescriptor pd2) {
					return pd1.getName().compareTo(pd2.getName());
				}
			});

			this.allProperties = allProperties;
		}
		return allProperties;
	}
public PropertyDescriptor [ ] getAllPropertyDescriptors ( ) { if ( allProperties == null ) { PropertyDescriptor [ ] allProperties = new PropertyDescriptor [ propertyDescriptors . size ( ) ] ; int index = 0 ; for ( PropertyDescriptor propertyDescriptor : propertyDescriptors . values ( ) ) { allProperties [ index ] = propertyDescriptor ; index ++ ; } Arrays . sort ( allProperties , new Comparator < PropertyDescriptor > ( ) { @ Override public int compare ( final PropertyDescriptor pd1 , final PropertyDescriptor pd2 ) { return pd1 . getName ( ) . compareTo ( pd2 . getName ( ) ) ; } } ) ; this . allProperties = allProperties ; } return allProperties ; }
Returns all property descriptors.
Properties are sorted by name.
Returns all property descriptors . Properties are sorted by name .