本文整理汇总了Java中org.apache.commons.lang3.exception.CloneFailedException类的典型用法代码示例。如果您正苦于以下问题:Java CloneFailedException类的具体用法?Java CloneFailedException怎么用?Java CloneFailedException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CloneFailedException类属于org.apache.commons.lang3.exception包,在下文中一共展示了CloneFailedException类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: shallowClone
import org.apache.commons.lang3.exception.CloneFailedException; //导入依赖的package包/类
@Override
public AddGraph shallowClone() throws CloneFailedException {
final Builder builder = new Builder()
.graphId(graphId)
.schema(schema)
.storeProperties(storeProperties)
.parentSchemaIds(parentSchemaIds)
.parentPropertiesId(parentPropertiesId)
.options(this.options)
.isPublic(this.isPublic);
if (null != graphAuths) {
builder.graphAuths(graphAuths.toArray(new String[graphAuths.size()]));
}
return builder.build();
}
开发者ID:gchq,项目名称:Gaffer,代码行数:18,代码来源:AddGraph.java
示例2: shallowClone
import org.apache.commons.lang3.exception.CloneFailedException; //导入依赖的package包/类
@Override
public RemoveGraph shallowClone() throws CloneFailedException {
return new RemoveGraph.Builder()
.graphId(graphId)
.options(options)
.build();
}
开发者ID:gchq,项目名称:Gaffer,代码行数:8,代码来源:RemoveGraph.java
示例3: shallowClone
import org.apache.commons.lang3.exception.CloneFailedException; //导入依赖的package包/类
@Override
public Filter shallowClone() throws CloneFailedException {
return new Filter.Builder()
.input(input)
.entities(entities)
.edges(edges)
.globalElements(globalElements)
.globalEdges(globalEdges)
.globalEntities(globalEntities)
.options(options)
.build();
}
开发者ID:gchq,项目名称:Gaffer,代码行数:13,代码来源:Filter.java
示例4: shallowClone
import org.apache.commons.lang3.exception.CloneFailedException; //导入依赖的package包/类
@Override
public Aggregate shallowClone() throws CloneFailedException {
return new Aggregate.Builder()
.input(input)
.options(options)
.edges(edges)
.entities(entities)
.build();
}
开发者ID:gchq,项目名称:Gaffer,代码行数:10,代码来源:Aggregate.java
示例5: shallowClone
import org.apache.commons.lang3.exception.CloneFailedException; //导入依赖的package包/类
@Override
public Transform shallowClone() throws CloneFailedException {
return new Transform.Builder()
.input(input)
.options(options)
.edges(edges)
.entities(entities)
.build();
}
开发者ID:gchq,项目名称:Gaffer,代码行数:10,代码来源:Transform.java
示例6: shallowClone
import org.apache.commons.lang3.exception.CloneFailedException; //导入依赖的package包/类
@Override
public Map<I, O> shallowClone() throws CloneFailedException {
final Map<I, O> clone = new Map<>();
for (final Function func : functions) {
clone.getFunctions().add(func);
}
clone.setInput(input);
clone.setOptions(options);
return clone;
}
开发者ID:gchq,项目名称:Gaffer,代码行数:11,代码来源:Map.java
示例7: shallowClone
import org.apache.commons.lang3.exception.CloneFailedException; //导入依赖的package包/类
public OperationChain<OUT> shallowClone() throws CloneFailedException {
final OperationChain<OUT> clone = new OperationChain<>();
clone.setOptions(options);
for (final Operation operation : operations) {
clone.getOperations().add(operation.shallowClone());
}
return clone;
}
开发者ID:gchq,项目名称:Gaffer,代码行数:9,代码来源:OperationChain.java
示例8: shallowClone
import org.apache.commons.lang3.exception.CloneFailedException; //导入依赖的package包/类
@Override
public Operation shallowClone() throws CloneFailedException {
return new InputImpl.Builder()
.optionalField1(optionalField1)
.optionalField2(optionalField2)
.requiredField1(requiredField1)
.requiredField2(requiredField2)
.input(input)
.options(options)
.build();
}
开发者ID:gchq,项目名称:Gaffer,代码行数:12,代码来源:InputImpl.java
示例9: shallowClone
import org.apache.commons.lang3.exception.CloneFailedException; //导入依赖的package包/类
@Override
public GetSchema shallowClone() throws CloneFailedException {
return new Builder()
.compact(compact)
.options(options)
.build();
}
开发者ID:gchq,项目名称:Gaffer,代码行数:8,代码来源:GetSchema.java
示例10: testCloneOfUncloneable
import org.apache.commons.lang3.exception.CloneFailedException; //导入依赖的package包/类
/**
* Tests {@link ObjectUtils#clone(Object)} with an uncloneable object.
*/
public void testCloneOfUncloneable() {
final UncloneableString string = new UncloneableString("apache");
try {
ObjectUtils.clone(string);
fail("Thrown " + CloneFailedException.class.getName() + " expected");
} catch (final CloneFailedException e) {
assertEquals(NoSuchMethodException.class, e.getCause().getClass());
}
}
开发者ID:SpoonLabs,项目名称:astor,代码行数:13,代码来源:ObjectUtilsTest.java
示例11: testPossibleCloneOfUncloneable
import org.apache.commons.lang3.exception.CloneFailedException; //导入依赖的package包/类
/**
* Tests {@link ObjectUtils#cloneIfPossible(Object)} with an uncloneable object.
*/
public void testPossibleCloneOfUncloneable() {
final UncloneableString string = new UncloneableString("apache");
try {
ObjectUtils.cloneIfPossible(string);
fail("Thrown " + CloneFailedException.class.getName() + " expected");
} catch (final CloneFailedException e) {
assertEquals(NoSuchMethodException.class, e.getCause().getClass());
}
}
开发者ID:SpoonLabs,项目名称:astor,代码行数:13,代码来源:ObjectUtilsTest.java
示例12: testCloneOfUncloneable
import org.apache.commons.lang3.exception.CloneFailedException; //导入依赖的package包/类
/**
* Tests {@link ObjectUtils#clone(Object)} with an uncloneable object.
*/
@Test(expected = NoSuchMethodException.class)
public void testCloneOfUncloneable() throws Throwable {
final UncloneableString string = new UncloneableString("apache");
try {
ObjectUtils.clone(string);
fail("Thrown " + CloneFailedException.class.getName() + " expected");
} catch (final CloneFailedException e) {
throw e.getCause();
}
}
开发者ID:SpoonLabs,项目名称:astor,代码行数:14,代码来源:ObjectUtilsTest.java
示例13: testPossibleCloneOfUncloneable
import org.apache.commons.lang3.exception.CloneFailedException; //导入依赖的package包/类
/**
* Tests {@link ObjectUtils#cloneIfPossible(Object)} with an uncloneable object.
*/
@Test(expected = NoSuchMethodException.class)
public void testPossibleCloneOfUncloneable() throws Throwable {
final UncloneableString string = new UncloneableString("apache");
try {
ObjectUtils.cloneIfPossible(string);
fail("Thrown " + CloneFailedException.class.getName() + " expected");
} catch (final CloneFailedException e) {
throw e.getCause();
}
}
开发者ID:SpoonLabs,项目名称:astor,代码行数:14,代码来源:ObjectUtilsTest.java
示例14: testCloneOfUncloneable
import org.apache.commons.lang3.exception.CloneFailedException; //导入依赖的package包/类
/**
* Tests {@link ObjectUtils#clone(Object)} with an uncloneable object.
*
* @throws java.lang.Throwable because we expect this to fail
*/
@Test(expected = NoSuchMethodException.class)
public void testCloneOfUncloneable() throws Throwable {
final UncloneableString string = new UncloneableString("apache");
try {
ObjectUtils.clone(string);
fail("Thrown " + CloneFailedException.class.getName() + " expected");
} catch (final CloneFailedException e) {
throw e.getCause();
}
}
开发者ID:ManfredTremmel,项目名称:gwt-commons-lang3,代码行数:16,代码来源:ObjectUtilsTest.java
示例15: testPossibleCloneOfUncloneable
import org.apache.commons.lang3.exception.CloneFailedException; //导入依赖的package包/类
/**
* Tests {@link ObjectUtils#cloneIfPossible(Object)} with an uncloneable object.
*
* @throws java.lang.Throwable because we expect this to fail
*/
@Test(expected = NoSuchMethodException.class)
public void testPossibleCloneOfUncloneable() throws Throwable {
final UncloneableString string = new UncloneableString("apache");
try {
ObjectUtils.cloneIfPossible(string);
fail("Thrown " + CloneFailedException.class.getName() + " expected");
} catch (final CloneFailedException e) {
throw e.getCause();
}
}
开发者ID:ManfredTremmel,项目名称:gwt-commons-lang3,代码行数:16,代码来源:ObjectUtilsTest.java
示例16: shallowClone
import org.apache.commons.lang3.exception.CloneFailedException; //导入依赖的package包/类
public FederatedOperationChain<O_ITEM> shallowClone() throws CloneFailedException {
return new FederatedOperationChain.Builder<O_ITEM>()
.operationChain(operationChain.shallowClone())
.options(options)
.build();
}
开发者ID:gchq,项目名称:Gaffer,代码行数:7,代码来源:FederatedOperationChain.java
示例17: shallowClone
import org.apache.commons.lang3.exception.CloneFailedException; //导入依赖的package包/类
@Override
public GetAllGraphIds shallowClone() throws CloneFailedException {
return new Builder()
.options(options)
.build();
}
开发者ID:gchq,项目名称:Gaffer,代码行数:7,代码来源:GetAllGraphIds.java
示例18: shallowClone
import org.apache.commons.lang3.exception.CloneFailedException; //导入依赖的package包/类
@Override
public DiscardOutput shallowClone() throws CloneFailedException {
return new DiscardOutput.Builder()
.options(options)
.build();
}
开发者ID:gchq,项目名称:Gaffer,代码行数:7,代码来源:DiscardOutput.java
示例19: shallowClone
import org.apache.commons.lang3.exception.CloneFailedException; //导入依赖的package包/类
@Override
public Operation shallowClone() throws CloneFailedException {
return null;
}
开发者ID:gchq,项目名称:Gaffer,代码行数:5,代码来源:TestOperationsImpl.java
示例20: shallowClone
import org.apache.commons.lang3.exception.CloneFailedException; //导入依赖的package包/类
/**
* Operation implementations should ensure a ShallowClone method is implemented.
* Performs a shallow clone. Creates a new instance and copies the fields across.
* It does not clone the fields.
*
* If the operation contains nested operations, these must also be cloned.
*
* @return shallow clone
* @throws CloneFailedException if a Clone error occurs
*/
Operation shallowClone() throws CloneFailedException;
开发者ID:gchq,项目名称:Gaffer,代码行数:12,代码来源:Operation.java
注:本文中的org.apache.commons.lang3.exception.CloneFailedException类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论