FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add methods to ResourceName interface by andreamlin · Pull Request #46 · googleapis/api-common-java · GitHub

This repository was archived by the owner on Sep 27, 2023. It is now read-only.
/ api-common-java Public archive

Add methods to ResourceName interface - #46

Merged
andreamlin merged 15 commits into
masterfrom
resourceNameMethods
Mar 6, 2018
Merged

andreamlin merged 15 commits into
masterfrom
resourceNameMethods

Conversation

Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor Author

Copy link
Copy Markdown
Contributor Author

PTAL

codecov-io commented Feb 28, 2018
edited
Loading

Copy link
Copy Markdown

Codecov Report

Merging #46 into master will increase coverage by 0.78%.
The diff coverage is 62.5%.

@@             Coverage Diff              @@
##             master      #46      +/-   ##
============================================
+ Coverage     60.23%   61.01%   +0.78%     
- Complexity      140      145       +5     
============================================
  Files            14       14              
  Lines           606      613       +7     
  Branches         91       92       +1     
============================================
+ Hits            365      374       +9     
+ Misses          219      215       -4     
- Partials         22       24       +2
Impacted Files Coverage Δ Complexity Δ
.../google/api/resourcenames/UntypedResourceName.java 42.85% <62.5%> (+42.85%) 5 <3> (+5) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update efe02a9...1387841. Read the comment docs.


@Override
/* Returns a map with an empty String as the sole key, which maps to the raw value of this ResourceName. */
public Map<String, String> getFieldValuesMap() {

This comment was marked as spam.

This comment was marked as spam.

}

@Override
/* Returns the raw value of this ResourceName, regardless of the fieldName parameter. */

This comment was marked as spam.

This comment was marked as spam.

/* Returns the raw value of this ResourceName iff fieldName.equals(""), else returns null. */
@Override
public String getFieldValue(String fieldName) {
return fieldValuesMap.get("");

This comment was marked as spam.

This comment was marked as spam.

}
}
return fieldValuesMap;
}

This comment was marked as spam.

This comment was marked as spam.

Comment thread version.txt Outdated
@@ -1 +1 @@
1.4.0
1.3.1-SNAPSHOT

This comment was marked as spam.

*/
package com.google.api.resourcenames;

public interface ResourceNameFactory<T extends ResourceName> {

This comment was marked as spam.

This comment was marked as spam.

public interface ResourceNameFactory<T extends ResourceName> {

/* Create a new ResourceName from a formatted String representing a ResourceName. */
T parseFrom(String formattedString);

This comment was marked as spam.

This comment was marked as spam.

garrettjonesgoogle left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Ok I'm good with this PR, but we should hold off on merging until we have regenerated api-client-staging and released that code in google-cloud-java.

andreamlin merged commit c01543b into master Mar 6, 2018
miraleung pushed a commit that referenced this pull request Jun 4, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL