public static FromMatchesFilter create(Jid address) {
        return new FromMatchesFilter(address, address != null ? address.hasNoResource() : false) ;
    }
public static FromMatchesFilter create ( Jid address ) { return new FromMatchesFilter ( address , address != null ? address . hasNoResource ( ) : false ) ; }
Creates a filter matching on the "from" field. If the filter address is bare, compares
the filter address with the bare from address. Otherwise, compares the filter address
with the full from address.

@param address The address to filter for. If <code>null</code> is given, the stanza must not
have a from address.
@return filter for the "from" address.