Skip to content

Instantly share code, notes, and snippets.

@jtwaleson
Created May 18, 2012 14:51

Revisions

  1. jtwaleson created this gist May 18, 2012.
    7 changes: 7 additions & 0 deletions gistfile1.java
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    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());
    }