// Path: zing-common/src/main/java/org/zxc/zing/common/entity/ProviderInfo.java
// public class ProviderInfo {
//     private String address;
//     private int port;
// 
//     public ProviderInfo(String address, int port) {
//         this.address = address;
//         this.port = port;
//     }
// 
//     public int getPort() {
//         return port;
//     }
// 
//     public void setPort(int port) {
//         this.port = port;
//     }
// 
//     public String getAddress() {
//         return address;
//     }
// 
//     public void setAddress(String address) {
//         this.address = address;
//     }
// 
//     @Override
//     public boolean equals(Object o) {
//         if (this == o) return true;
//         if (o == null || getClass() != o.getClass()) return false;
// 
//         ProviderInfo that = (ProviderInfo) o;
// 
//         if (port != that.port) return false;
//         if (!address.equals(that.address)) return false;
// 
//         return true;
//     }
// 
//     @Override
//     public int hashCode() {
//         int result = address.hashCode();
//         result = 31 * result + port;
//         return result;
//     }
// 
//     @Override
//     public String toString() {
//         final StringBuilder sb = new StringBuilder("ProviderInfo{");
//         sb.append("address='").append(address).append('\'');
//         sb.append(", port=").append(port);
//         sb.append('}');
//         return sb.toString();
//     }
// }


import com.google.common.base.Function;
import com.google.common.base.Splitter;
import com.google.common.base.Strings;
import com.google.common.collect.Lists;
import org.apache.commons.collections.CollectionUtils;
import org.zxc.zing.common.entity.ProviderInfo;
import java.util.List;
package org.zxc.zing.common.registry.function;



/**
 * Created by xuanchen.zhao on 16-1-17.
 */
public class ServerStr2ProviderInfoTransformer implements Function<String, ProviderInfo>{

    public static final ServerStr2ProviderInfoTransformer INSTANCE = new ServerStr2ProviderInfoTransformer();

    @Override
// Path: zing-common/src/main/java/org/zxc/zing/common/entity/ProviderInfo.java
// public class ProviderInfo {
//     private String address;
//     private int port;
// 
//     public ProviderInfo(String address, int port) {
//         this.address = address;
//         this.port = port;
//     }
// 
//     public int getPort() {
//         return port;
//     }
// 
//     public void setPort(int port) {
//         this.port = port;
//     }
// 
//     public String getAddress() {
//         return address;
//     }
// 
//     public void setAddress(String address) {
//         this.address = address;
//     }
// 
//     @Override
//     public boolean equals(Object o) {
//         if (this == o) return true;
//         if (o == null || getClass() != o.getClass()) return false;
// 
//         ProviderInfo that = (ProviderInfo) o;
// 
//         if (port != that.port) return false;
//         if (!address.equals(that.address)) return false;
// 
//         return true;
//     }
// 
//     @Override
//     public int hashCode() {
//         int result = address.hashCode();
//         result = 31 * result + port;
//         return result;
//     }
// 
//     @Override
//     public String toString() {
//         final StringBuilder sb = new StringBuilder("ProviderInfo{");
//         sb.append("address='").append(address).append('\'');
//         sb.append(", port=").append(port);
//         sb.append('}');
//         return sb.toString();
//     }
// }


// Path: zing-common/src/main/java/org/zxc/zing/common/registry/function/ServerStr2ProviderInfoTransformer.java
import com.google.common.base.Function;
import com.google.common.base.Splitter;
import com.google.common.base.Strings;
import com.google.common.collect.Lists;
import org.apache.commons.collections.CollectionUtils;
import org.zxc.zing.common.entity.ProviderInfo;
import java.util.List;

package org.zxc.zing.common.registry.function;



/**
 * Created by xuanchen.zhao on 16-1-17.
 */
public class ServerStr2ProviderInfoTransformer implements Function<String, ProviderInfo>{

    public static final ServerStr2ProviderInfoTransformer INSTANCE = new ServerStr2ProviderInfoTransformer();

    @Override
    public ProviderInfo apply(String serverAddress) {