Skip to content

Instantly share code, notes, and snippets.

@jtwaleson
Created May 18, 2012 14:51
Show Gist options
  • Save jtwaleson/2725669 to your computer and use it in GitHub Desktop.
Save jtwaleson/2725669 to your computer and use it in GitHub Desktop.
shifting1
Map<String,SortDirection> filteredMap = Maps.newHashMap();
for(Entry<String,SortDirection> entry : sort.entrySet())
{
AttributePath attributePath = parsePath(entityName, entry.getKey());
if(!attributePath.getAttribute().isVirtual())
filteredMap.put(entry.getKey(), entry.getValue());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment