/** * Gets the values of a complex entity-key. * * @return the key values as a set of named-values */ @SuppressWarnings("unchecked") public Set<NamedValue<?>> asComplexValue() { assertComplex(); return (Set<NamedValue<?>>) (Object) toSortedSet(Enumerable.create(values).cast(NamedValue.class), OComparators.namedValueByNameRaw()); }
/** * Gets the values of a complex entity-key. * * @return the key values as a set of named-values */ @SuppressWarnings("unchecked") public Set<NamedValue<?>> asComplexValue() { assertComplex(); return (Set<NamedValue<?>>) (Object) toSortedSet(Enumerable.create(values).cast(NamedValue.class), OComparators.namedValueByNameRaw()); }
/** * Gets the values of a complex entity-key. * * @return the key values as a set of named-values */ @SuppressWarnings("unchecked") public Set<NamedValue<?>> asComplexValue() { assertComplex(); return (Set<NamedValue<?>>) (Object) toSortedSet(Enumerable.create(values).cast(NamedValue.class), OComparators.namedValueByNameRaw()); }
/** * Gets the values of complex entity-key. * * @return the key values as a set of properties */ public Set<OProperty<?>> asComplexProperties() { assertComplex(); return toSortedSet(Enumerable.create(values).cast(NamedValue.class).select(OFuncs.namedValueToPropertyRaw()), OComparators.propertyByName()); }
/** * Gets the values of complex entity-key. * * @return the key values as a set of properties */ public Set<OProperty<?>> asComplexProperties() { assertComplex(); return toSortedSet(Enumerable.create(values).cast(NamedValue.class).select(OFuncs.namedValueToPropertyRaw()), OComparators.propertyByName()); }
/** * Gets the values of complex entity-key. * * @return the key values as a set of properties */ public Set<OProperty<?>> asComplexProperties() { assertComplex(); return toSortedSet(Enumerable.create(values).cast(NamedValue.class).select(OFuncs.namedValueToPropertyRaw()), OComparators.propertyByName()); }