Skip to content

Will be super to extract "match" logic into own re-usable method/class #146

Open
@OleksandrKucherenko

Description

@OleksandrKucherenko

I found that it will be very useful to have some simple matches in code, like:

public static final String PATTERN = "example://data/{param}/something";

/* pseudo code */
public static boolean isMatch(final String uri){
  final DpMatch m =  DeepLink.match(PATTERN, uri);

  if( m.isSuccess() ){
    final String value = m.getValue( "{param}" );
    return "expected".equals(value);
  }

  return false;
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions